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>
|
||||
|
||||
_pkgname=EnMCB
|
||||
_pkgver=1.8.2
|
||||
_pkgver=1.14.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.8.2
|
||||
pkgrel=9
|
||||
pkgdesc='Predicting Disease Progression Based on Methylation Correlated Blocks using Ensemble Models'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/3.15/${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Predicting Disease Progression Based on Methylation Correlated Blocks using Ensemble Models"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=('GPL-2.0-only')
|
||||
depends=(
|
||||
r
|
||||
r-biocfilecache
|
||||
r-e1071
|
||||
r-ggplot2
|
||||
|
@ -32,15 +31,16 @@ optdepends=(
|
|||
r-survminer
|
||||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/3.15/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('847b4ad1e11d292f898f5221fc4f54bba9f8d5cf1530be8f54b4969f893ecace')
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('f9fee363d9285ffdf2895062fc0cf26b')
|
||||
b2sums=('a5de7b457fd8eaddf133739616afe80daf7935a3715e38d4d096108c1a272f96ac2ba23fa40ff309e917230cba6326f8f2680db6d365fcb30b2243ac8c74805a')
|
||||
|
||||
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()
|
||||
|
|
|
@ -13,7 +13,8 @@ repo_depends:
|
|||
- r-survivalroc
|
||||
- r-survivalsvm
|
||||
update_on:
|
||||
- regex: EnMCB_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/3.15/EnMCB
|
||||
- source: rpkgs
|
||||
pkgname: EnMCB
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue