mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-randomwalkrestartmh: use metadata checks
This commit is contained in:
parent
a3a0bd7534
commit
1a0d71eff4
3 changed files with 21 additions and 19 deletions
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue