mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-enmcb: use latest sources, use metadata checks
This commit is contained in:
parent
7e45e0f2f6
commit
80cb784617
3 changed files with 24 additions and 22 deletions
|
@ -1,16 +1,15 @@
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
_pkgname=EnMCB
|
_pkgname=EnMCB
|
||||||
_pkgver=1.8.2
|
_pkgver=1.14.0
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=1.8.2
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=9
|
pkgrel=0
|
||||||
pkgdesc='Predicting Disease Progression Based on Methylation Correlated Blocks using Ensemble Models'
|
pkgdesc="Predicting Disease Progression Based on Methylation Correlated Blocks using Ensemble Models"
|
||||||
arch=('any')
|
arch=(any)
|
||||||
url="https://bioconductor.org/packages/3.15/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-only')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-biocfilecache
|
r-biocfilecache
|
||||||
r-e1071
|
r-e1071
|
||||||
r-ggplot2
|
r-ggplot2
|
||||||
|
@ -32,15 +31,16 @@ optdepends=(
|
||||||
r-survminer
|
r-survminer
|
||||||
r-testthat
|
r-testthat
|
||||||
)
|
)
|
||||||
source=("https://bioconductor.org/packages/3.15/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('847b4ad1e11d292f898f5221fc4f54bba9f8d5cf1530be8f54b4969f893ecace')
|
md5sums=('f9fee363d9285ffdf2895062fc0cf26b')
|
||||||
|
b2sums=('a5de7b457fd8eaddf133739616afe80daf7935a3715e38d4d096108c1a272f96ac2ba23fa40ff309e917230cba6326f8f2680db6d365fcb30b2243ac8c74805a')
|
||||||
|
|
||||||
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,13 @@
|
||||||
#!/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(_G)
|
||||||
if line.startswith('_pkgver='):
|
|
||||||
line = f'_pkgver={_G.newver}'
|
|
||||||
print(line)
|
|
||||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -13,7 +13,8 @@ repo_depends:
|
||||||
- r-survivalroc
|
- r-survivalroc
|
||||||
- r-survivalsvm
|
- r-survivalsvm
|
||||||
update_on:
|
update_on:
|
||||||
- regex: EnMCB_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: EnMCB
|
||||||
url: https://bioconductor.org/packages/3.15/EnMCB
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue