r-rols: fix depends, use metadata checks

This commit is contained in:
Pekka Ristola 2024-02-14 07:41:39 +02:00
parent b91e757e21
commit e956c1159e
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 25 additions and 25 deletions

View file

@ -1,21 +1,19 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=rols
_pkgver=2.30.0
_pkgver=2.30.1
pkgname=r-${_pkgname,,}
pkgver=2.30.0
pkgrel=1
pkgdesc='An R interface to the Ontology Lookup Service'
arch=('any')
url="https://bioconductor.org/packages/${_pkgname}"
license=('GPL')
pkgver=${_pkgver//-/.}
pkgrel=0
pkgdesc="An R interface to the Ontology Lookup Service"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('GPL-2.0-only')
depends=(
r
r-biobase
r-biocgenerics
r-httr
r-httr2
r-jsonlite
r-progress
)
optdepends=(
r-biocstyle
@ -27,14 +25,15 @@ optdepends=(
r-testthat
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('9de32bf8178d665de13f0b6ebdeb35cd2c2182afd72fa5073afc3d7afe7d904b')
md5sums=('dae024b25d99cb24428d289e1b629f36')
b2sums=('a19ab587b84c0450cc411479dc472f427fa598ccebc16c20f2b7841bc84e1c3d9537da5eabb7086fabdf41370f4f894fc704f598d75d8ef67fd189634ac54060')
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

@ -5,11 +5,11 @@ maintainers:
repo_depends:
- r-biobase
- r-biocgenerics
- r-httr
- r-httr2
- r-jsonlite
- r-progress
update_on:
- regex: rols_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/rols
- source: rpkgs
pkgname: rols
repo: bioc
md5: true
- alias: r