bayesmeta: add new pkg

This commit is contained in:
Shun Wang 2025-02-12 14:47:38 +08:00 committed by GitHub
parent fe664563e9
commit 021a3dcad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
# Contributor: Shun Wang <shuonwang at gmail dot com>
_pkgname=bayesmeta
_pkgver=3.4
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Bayesian Random-Effects Meta-Analysis and Meta-Regression"
arch=('x86_64')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-forestplot
r-metafor
r-mvtnorm
r-numDeriv
)
optdepends=(
r-compute.es
r-knitr
r-rmarkdown
r-r.rsp
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('9b3352a1d31cbe5feaf87267232d0d28')
b2sums=('a8963d075d2cbf78823aadd3b6610d66fe8a49863ed0bf6927865b35456e0282f7f7db275da3194a6af479b6c3b89819fe520c3e4d06cb788a1e3d98f23b409b')
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"
}

View 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()

View file

@ -0,0 +1,14 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
- r-forestplot
- r-metafor
- r-mvtnorm
- r-numDeriv
- source: rpkgs
pkgname: bayesmeta
repo: cran
md5: true
- alias: r