r-tvtb: use latest sources, use metadata checks

This commit is contained in:
Pekka Ristola 2024-03-27 20:15:37 +02:00
parent ae570627fd
commit 9dce0a7153
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 24 additions and 22 deletions

View file

@ -1,16 +1,15 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=TVTB
_pkgver=1.22.0
_pkgver=1.28.0
pkgname=r-${_pkgname,,}
pkgver=1.22.0
pkgrel=5
pkgdesc='TVTB: The VCF Tool Box'
arch=('any')
url="https://bioconductor.org/packages/3.15/${_pkgname}"
license=('Artistic2.0')
pkgver=${_pkgver//-/.}
pkgrel=0
pkgdesc="The VCF Tool Box"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
r
r-annotationfilter
r-biocgenerics
r-biocparallel
@ -42,15 +41,16 @@ optdepends=(
r-shiny
r-testthat
)
source=("https://bioconductor.org/packages/3.15/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('1af5da609ec7b34cc10f5fe898bebf786f4fac573044fee992c86fe15df4dd00')
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('64da00f3c21bf3f9a82dc32e451395a1')
b2sums=('e9383fe58a3af14f9b76c2bb759e07a9ba4181daeeea7f2141744be3991226adedd33e067784adf942749ab025d40432bdd02d16674d1535bdb1fc0618c3a13d')
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

@ -22,7 +22,8 @@ repo_depends:
- r-summarizedexperiment
- r-variantannotation
update_on:
- regex: TVTB_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/3.15/TVTB
- source: rpkgs
pkgname: TVTB
repo: bioc
md5: true
- alias: r