r-rastervis: use metadata checks

This commit is contained in:
Pekka Ristola 2024-03-02 19:20:48 +02:00
parent 606557deff
commit e1865032ad
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 23 additions and 21 deletions

View file

@ -1,16 +1,15 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=rasterVis
_pkgver=0.51.5
_pkgver=0.51.6
pkgname=r-${_pkgname,,}
pkgver=0.51.5
pkgrel=2
pkgdesc='Visualization Methods for Raster Data'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgver=${_pkgver//-/.}
pkgrel=0
pkgdesc="Visualization Methods for Raster Data"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
r
r-hexbin
r-latticeextra
r-raster
@ -28,14 +27,15 @@ optdepends=(
r-sf
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('3a9ffe38f7835bf9008cb3f2fbe01208f17130f4b1ca9ba19f97dc240ccf7aa1')
md5sums=('9e0a042f2e7058b73b32e8207fdbfd74')
b2sums=('fa3e9629e42727102cbff7b1c76fb3ace380be049a766e534055f63c182dad0726279e3a3f5b6c24a9f171a58e49b0a37bbdf2f166ada1d75a9a342397d168f3')
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

@ -12,7 +12,8 @@ repo_depends:
- r-viridislite
- r-zoo
update_on:
- regex: rasterVis_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=rasterVis
- source: rpkgs
pkgname: rasterVis
repo: cran
md5: true
- alias: r