r-multipanelfigure: use metadata checks

This commit is contained in:
Pekka Ristola 2024-03-04 12:37:48 +02:00
parent 83a7a9f1de
commit 3d57e80b87
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 24 additions and 28 deletions

View file

@ -1,21 +1,18 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> # Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=multipanelfigure _pkgname=multipanelfigure
_pkgver=2.1.2 _pkgver=2.1.5
pkgname=r-${_pkgname,,} pkgname=r-${_pkgname,,}
pkgver=2.1.2 pkgver=${_pkgver//-/.}
pkgrel=8 pkgrel=0
pkgdesc='Infrastructure to Assemble Multi-Panel Figures (from Grobs)' pkgdesc="Infrastructure to Assemble Multi-Panel Figures (from Grobs)"
arch=('any') arch=(any)
url="https://cran.r-project.org/package=${_pkgname}" url="https://cran.r-project.org/package=$_pkgname"
license=('GPL') license=('GPL-3.0-or-later')
depends=( depends=(
r
r-assertive.base r-assertive.base
r-assertive.files r-assertive.files
r-assertive.numbers r-assertive.numbers
r-assertive.properties
r-assertive.types
r-ggplot2 r-ggplot2
r-gridgraphics r-gridgraphics
r-gtable r-gtable
@ -25,23 +22,22 @@ depends=(
) )
optdepends=( optdepends=(
r-complexheatmap r-complexheatmap
r-grdevices
r-knitr r-knitr
r-lattice
r-markdown r-markdown
r-rmarkdown r-rmarkdown
r-roxygen2 r-roxygen2
r-venndiagram r-venndiagram
) )
source=("https://cran.r-project.org/src/contrib/Archive/${_pkgname}/${_pkgname}_${_pkgver}.tar.gz") source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('eca98888d2f7c8887764443633bd557e9100f73694b2e5df68a63b304f5ba532') md5sums=('e80c2af7114635a3cf1d01adf7d0207e')
b2sums=('730435fc8dd88ba096bafa7f2d8474cb2b99f361ef2353a0ad144602942709629e83c95c3b887fb5fc3b368eb7de2cbe62606e85e5376f29f472e3b32f92e5d6')
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:

View file

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

View file

@ -6,8 +6,6 @@ repo_depends:
- r-assertive.base - r-assertive.base
- r-assertive.files - r-assertive.files
- r-assertive.numbers - r-assertive.numbers
- r-assertive.properties
- r-assertive.types
- r-ggplot2 - r-ggplot2
- r-gridgraphics - r-gridgraphics
- r-gtable - r-gtable
@ -15,7 +13,8 @@ repo_depends:
- r-magrittr - r-magrittr
- r-stringi - r-stringi
update_on: update_on:
- regex: multipanelfigure_([\d._-]+).tar.gz - source: rpkgs
source: regex pkgname: multipanelfigure
url: https://cran.r-project.org/src/contrib/Archive/multipanelfigure repo: cran
md5: true
- alias: r - alias: r