r-breastcancervdx: use metadata checks

This commit is contained in:
Pekka Ristola 2023-12-24 13:40:34 +02:00
parent 05d72a99b2
commit c6995f4bc8
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 21 additions and 18 deletions

View file

@ -3,12 +3,12 @@
_pkgname=breastCancerVDX
_pkgver=1.40.0
pkgname=r-${_pkgname,,}
pkgver=1.40.0
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Gene expression datasets published by Wang et al. [2005] and Minn et al. [2007] (VDX).'
arch=('any')
url="https://bioconductor.org/packages/${_pkgname}"
license=('Artistic2.0')
pkgdesc="Gene expression datasets published by Wang et al. [2005] and Minn et al. [2007] (VDX)"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=(Artistic2.0)
depends=(
r
)
@ -18,14 +18,15 @@ optdepends=(
r-survcomp
)
source=("https://bioconductor.org/packages/release/data/experiment/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('c03d04aa3e347b6153f0f68cc38218a4f8a93957386ce43b03596b3028fe288b')
md5sums=('446ef46e0bdd1480e12de21ded7b58f0')
b2sums=('61e0ee4255350d171971f023f6e1b811a5429371cd09f47d8c060b5b0b58fbfdba39fdf20b88d649b63086215ca3812cca0a81534e9a19c5bc970bfd535399c4')
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:

View file

@ -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()

View file

@ -3,7 +3,8 @@ maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- regex: breastCancerVDX_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/breastCancerVDX
- source: rpkgs
pkgname: breastCancerVDX
repo: bioc-data-experiment
md5: true
- alias: r