mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-lpnet: fix depends, use metadata checks
This commit is contained in:
parent
ed71390732
commit
8c3ce037a7
3 changed files with 28 additions and 21 deletions
|
@ -1,27 +1,28 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=lpNet
|
||||
_pkgver=2.34.1
|
||||
_pkgver=2.34.2
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=2.34.1
|
||||
pkgrel=1
|
||||
pkgdesc='Linear Programming Model for Network Inference'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('Artistic2.0')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Linear Programming Model for Network Inference"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=('Artistic-2.0')
|
||||
depends=(
|
||||
r
|
||||
r-kegggraph
|
||||
r-lpsolve
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('8fb89dcbd3c1d2eb43338961a9dc565efaf3a844db853613a7d1c1cdae41eefd')
|
||||
md5sums=('98de40db5eda03f2ae3b35cf04c6882c')
|
||||
b2sums=('1c248f30f0471c7a3fe31a2d79ca8cdc428d88e6b0f799366a0f2bf0b59dd599df45c9912d498d78cfc197cd259eea832841ebf7ea139b0f5f63440bb9d087a2')
|
||||
|
||||
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,16 @@
|
|||
#!/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,
|
||||
expect_license = "Artistic License 2.0",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,9 +3,11 @@ maintainers:
|
|||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
repo_depends:
|
||||
- r-kegggraph
|
||||
- r-lpsolve
|
||||
update_on:
|
||||
- regex: lpNet_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/lpNet
|
||||
- source: rpkgs
|
||||
pkgname: lpNet
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue