mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-ergm: add new pkg
This commit is contained in:
parent
589edc6b1f
commit
7c63d79e10
3 changed files with 99 additions and 0 deletions
58
BioArchLinux/r-ergm/PKGBUILD
Normal file
58
BioArchLinux/r-ergm/PKGBUILD
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||
# Contributor: Shun Wang <shuonwang at gmail dot com>
|
||||
|
||||
_pkgname=ergm
|
||||
_pkgver=4.7.5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Fit, Simulate and Diagnose Exponential-Family Models for Networks"
|
||||
arch=('x86_64')
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r-robustbase
|
||||
r-coda
|
||||
r-trust
|
||||
r-lpsolveapi
|
||||
r-statnet.common
|
||||
r-rle
|
||||
r-purrr
|
||||
r-rlang
|
||||
r-memoise
|
||||
r-tibble
|
||||
r-magrittr
|
||||
r-rdpack
|
||||
r-knitr
|
||||
r-stringr
|
||||
)
|
||||
makedepends=(
|
||||
r-network
|
||||
)
|
||||
optdepends=(
|
||||
r-latticeextra
|
||||
r-sna
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
r-ergm.count
|
||||
r-withr
|
||||
r-rglpk
|
||||
r-slam
|
||||
r-networkLite
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('a3f51a8588d2bcec0ba6339a76be2cd2')
|
||||
b2sums=('58f9e38782261b7162493a8013d56dc95d183d21bb775bac28a4a8e11db4bd243352d81ce10c236f7b918aa6e0170f2a8b75984c9356888744d78e8c9cf42bcb')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENCE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
17
BioArchLinux/r-ergm/lilac.py
Normal file
17
BioArchLinux/r-ergm/lilac.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_license = "GPL-3 + file LICENSE",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
# update_aur_repo()
|
24
BioArchLinux/r-ergm/lilac.yaml
Normal file
24
BioArchLinux/r-ergm/lilac.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
repo_depends:
|
||||
- r-network
|
||||
- r-robustbase
|
||||
- r-coda
|
||||
- r-trust
|
||||
- r-lpsolveapi
|
||||
- r-statnet.common
|
||||
- r-rle
|
||||
- r-purrr
|
||||
- r-rlang
|
||||
- r-memoise
|
||||
- r-tibble
|
||||
- r-magrittr
|
||||
- r-rdpack
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: ergm
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue