mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-networkcomparisontest: fix depends, use metadata checks
This commit is contained in:
parent
1ed3e24709
commit
10fbf1a1f2
3 changed files with 49 additions and 29 deletions
|
@ -1,33 +1,46 @@
|
|||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=NetworkComparisonTest
|
||||
_pkgver=2.2.1
|
||||
_pkgver=2.2.2
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=2.2.1
|
||||
pkgrel=3
|
||||
pkgdesc='Statistical Comparison of Two Networks Based on Three Invariance Measures'
|
||||
arch=('any')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Statistical Comparison of Two Networks Based on Several Invariance Measures"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
license=(GPL2)
|
||||
depends=(
|
||||
r
|
||||
r-isingfit
|
||||
r-isingsampler
|
||||
r-networktools
|
||||
r-qgraph
|
||||
r-reshape2
|
||||
)
|
||||
checkdepends=(
|
||||
r-bootnet
|
||||
r-isingsampler
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-networktools
|
||||
r-bootnet
|
||||
r-isingsampler
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('1753961e9fb41d3aae6d12392445d7468d312a5e42629d34597ffa1e6e329b28')
|
||||
md5sums=('c699e7be5bafd726a02a5721f625b4cc')
|
||||
sha256sums=('11f61db9031c54ed28dce0310f51270b0bbd60bbdbf0ec565beb79a80f4e6223')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir -p build
|
||||
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:
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#!/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():
|
||||
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('-', '.'))
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -1,13 +1,19 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-isingfit
|
||||
- r-isingsampler
|
||||
- r-qgraph
|
||||
- r-reshape2
|
||||
- r-isingfit
|
||||
- r-networktools
|
||||
- r-qgraph
|
||||
- r-reshape2
|
||||
repo_makedepends:
|
||||
- r-bootnet
|
||||
- r-isingsampler
|
||||
- r-testthat
|
||||
update_on:
|
||||
- regex: NetworkComparisonTest_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=NetworkComparisonTest
|
||||
- alias: r
|
||||
- source: rpkgs
|
||||
pkgname: NetworkComparisonTest
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue