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>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
_pkgname=lpNet
|
_pkgname=lpNet
|
||||||
_pkgver=2.34.1
|
_pkgver=2.34.2
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=2.34.1
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc='Linear Programming Model for Network Inference'
|
pkgdesc="Linear Programming Model for Network Inference"
|
||||||
arch=('any')
|
arch=(any)
|
||||||
url="https://bioconductor.org/packages/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('Artistic2.0')
|
license=('Artistic-2.0')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
r-kegggraph
|
||||||
r-lpsolve
|
r-lpsolve
|
||||||
)
|
)
|
||||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('8fb89dcbd3c1d2eb43338961a9dc565efaf3a844db853613a7d1c1cdae41eefd')
|
md5sums=('98de40db5eda03f2ae3b35cf04c6882c')
|
||||||
|
b2sums=('1c248f30f0471c7a3fe31a2d79ca8cdc428d88e6b0f799366a0f2bf0b59dd599df45c9912d498d78cfc197cd259eea832841ebf7ea139b0f5f63440bb9d087a2')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
mkdir build
|
||||||
|
R CMD INSTALL -l build "$_pkgname"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
cp -a --no-preserve=ownership "${_pkgname}" "${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
|
#!/usr/bin/env python3
|
||||||
from lilaclib import *
|
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():
|
def pre_build():
|
||||||
for line in edit_file('PKGBUILD'):
|
r_pre_build(
|
||||||
if line.startswith('_pkgver='):
|
_G,
|
||||||
line = f'_pkgver={_G.newver}'
|
expect_license = "Artistic License 2.0",
|
||||||
print(line)
|
)
|
||||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -3,9 +3,11 @@ maintainers:
|
||||||
- github: starsareintherose
|
- github: starsareintherose
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
repo_depends:
|
repo_depends:
|
||||||
|
- r-kegggraph
|
||||||
- r-lpsolve
|
- r-lpsolve
|
||||||
update_on:
|
update_on:
|
||||||
- regex: lpNet_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: lpNet
|
||||||
url: https://bioconductor.org/packages/lpNet
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue