mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-bergm: add new pkg
This commit is contained in:
parent
7c63d79e10
commit
cbe07b8397
3 changed files with 71 additions and 0 deletions
38
BioArchLinux/r-bergm/PKGBUILD
Normal file
38
BioArchLinux/r-bergm/PKGBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||
# Contributor: Shun Wang <shuonwang at gmail dot com>
|
||||
|
||||
_pkgname=Bergm
|
||||
_pkgver=5.0.7
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Bayesian Exponential Random Graph Models"
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-2.0-or-later')
|
||||
depends=(
|
||||
r-ergm
|
||||
r-coda
|
||||
r-matrixcalc
|
||||
r-mcmcpack
|
||||
r-mvtnorm
|
||||
r-network
|
||||
r-gglpk
|
||||
r-statnet.common
|
||||
)
|
||||
optdepends=(
|
||||
r-spelling
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('5c72aacf9a396fab6611733ce10409ca')
|
||||
b2sums=('40703eb4fd5d3dd365776f265ccdcf133d3c86832b50cffe02019cd08c1b83e50bdc0370e12864f3531caa1a6f77afc498a541f9637e252043003eab4c7e2b5f')
|
||||
|
||||
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"
|
||||
}
|
14
BioArchLinux/r-bergm/lilac.py
Normal file
14
BioArchLinux/r-bergm/lilac.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/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)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
# update_aur_repo()
|
19
BioArchLinux/r-bergm/lilac.yaml
Normal file
19
BioArchLinux/r-bergm/lilac.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
repo_depends:
|
||||
- r-ergm
|
||||
- r-coda
|
||||
- r-matrixcalc
|
||||
- r-mcmcpack
|
||||
- r-mvtnorm
|
||||
- r-network
|
||||
- r-gglpk
|
||||
- r-statnet.common
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: Bergm
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue