mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-robtt: fix compilation, use metadata checks
This commit is contained in:
parent
25e079430d
commit
642b8f2d96
3 changed files with 60 additions and 29 deletions
|
@ -1,46 +1,64 @@
|
|||
# system requirements: GNU make
|
||||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=RoBTT
|
||||
_pkgver=1.2.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Robust Bayesian T-Test'
|
||||
arch=('x86_64')
|
||||
pkgdesc="Robust Bayesian T-Test"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
license=(GPL3)
|
||||
depends=(
|
||||
r
|
||||
r-bayestools
|
||||
r-bh
|
||||
r-bridgesampling
|
||||
r-ggplot2
|
||||
r-rcpp
|
||||
r-rcppeigen
|
||||
r-rcppparallel
|
||||
r-rdpack
|
||||
r-rstan
|
||||
r-rstantools
|
||||
)
|
||||
makedepends=(
|
||||
r-bh
|
||||
r-rcppeigen
|
||||
r-stanheaders
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
r-vdiffr
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-knitr
|
||||
r-parallel
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
r-vdiffr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('0989bc4c3bac8e9dbda570a42c3ee3b7')
|
||||
sha256sums=('79db72dfdf2e5ba5e942daf575cc657fff46a49f8bac78c097c67dcbcdd7a910')
|
||||
|
||||
prepare() {
|
||||
# skip test that requires external files
|
||||
sed -i '1a skip("Requires external files")' \
|
||||
"$_pkgname/tests/testthat/test-4-diagnostics.R"
|
||||
}
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir -p build
|
||||
# compilation needs a lot of memory
|
||||
MAKEFLAGS+=" -j1"
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname/tests"
|
||||
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
17
BioArchLinux/r-robtt/lilac.py
Normal file
17
BioArchLinux/r-robtt/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_systemrequirements = "GNU make",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
|
@ -1,29 +1,25 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
||||
pre_build_script: |
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('_pkgver='):
|
||||
line = f'_pkgver={_G.newver}'
|
||||
print(line)
|
||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-bayestools
|
||||
- r-bh
|
||||
- r-bridgesampling
|
||||
- r-ggplot2
|
||||
- r-rcpp
|
||||
- r-rcppeigen
|
||||
- r-rcppparallel
|
||||
- r-rdpack
|
||||
- r-rstan
|
||||
- r-rstantools
|
||||
repo_makedepends:
|
||||
- r-bh
|
||||
- r-rcppeigen
|
||||
- r-stanheaders
|
||||
- r-testthat
|
||||
- r-vdiffr
|
||||
update_on:
|
||||
- regex: RoBTT_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=RoBTT
|
||||
- source: rpkgs
|
||||
pkgname: RoBTT
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue