diff --git a/BioArchLinux/r-randomwalkrestartmh/PKGBUILD b/BioArchLinux/r-randomwalkrestartmh/PKGBUILD index 7b896abfc5..064cee2c36 100644 --- a/BioArchLinux/r-randomwalkrestartmh/PKGBUILD +++ b/BioArchLinux/r-randomwalkrestartmh/PKGBUILD @@ -3,14 +3,13 @@ _pkgname=RandomWalkRestartMH _pkgver=1.22.0 pkgname=r-${_pkgname,,} -pkgver=1.22.0 +pkgver=${_pkgver//-/.} pkgrel=1 -pkgdesc='Random walk with restart on multiplex and heterogeneous Networks' -arch=('any') -url="https://bioconductor.org/packages/${_pkgname}" -license=('GPL') +pkgdesc="Random walk with restart on multiplex and heterogeneous Networks" +arch=(any) +url="https://bioconductor.org/packages/$_pkgname" +license=('GPL-2.0-or-later') depends=( - r r-dnet r-igraph ) @@ -21,14 +20,15 @@ optdepends=( r-testthat ) source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") -sha256sums=('ccb300c5b0cd8af6921f2f96ddbaddd63579db48b9d0f5da553cd206ae107057') +md5sums=('ace5e6d73a365094a41a864a47deb893') +b2sums=('9306b7da69f9837f020bfa67eebe676662b6281bf5b5588dc2a333b2a03afed43c3f24fc93f539917ff385bcd1992385c81bc073ecfb323419c17309adc75f77') build() { - R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" + mkdir build + R CMD INSTALL -l build "$_pkgname" } 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: diff --git a/BioArchLinux/r-randomwalkrestartmh/lilac.py b/BioArchLinux/r-randomwalkrestartmh/lilac.py index bd219c037c..b5cdb057c5 100644 --- a/BioArchLinux/r-randomwalkrestartmh/lilac.py +++ b/BioArchLinux/r-randomwalkrestartmh/lilac.py @@ -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() diff --git a/BioArchLinux/r-randomwalkrestartmh/lilac.yaml b/BioArchLinux/r-randomwalkrestartmh/lilac.yaml index f11c34919b..2d6e5c50ec 100644 --- a/BioArchLinux/r-randomwalkrestartmh/lilac.yaml +++ b/BioArchLinux/r-randomwalkrestartmh/lilac.yaml @@ -6,7 +6,8 @@ repo_depends: - r-dnet - r-igraph update_on: -- regex: RandomWalkRestartMH_([\d._-]+).tar.gz - source: regex - url: https://bioconductor.org/packages/RandomWalkRestartMH +- source: rpkgs + pkgname: RandomWalkRestartMH + repo: bioc + md5: true - alias: r