r-rnetcdf: fix build

This commit is contained in:
Pekka Ristola 2023-10-23 15:23:53 +03:00
parent 3d96c1840c
commit 0387f5628b
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
2 changed files with 7 additions and 13 deletions

View file

@ -1,10 +1,10 @@
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=RNetCDF
_pkgver=2.7-1
_pkgver=2.8-1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgrel=0
pkgdesc="Interface to 'NetCDF' Datasets"
arch=(x86_64)
url="https://cran.r-project.org/package=${_pkgname}"
@ -23,17 +23,9 @@ checkdepends=(
optdepends=(
r-bit64
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"$_pkgname-fix-build.patch::https://github.com/mjwoods/RNetCDF/pull/128.patch")
md5sums=('4ea0d88f5bb0b80ac2befd5903367977'
'218440db93cdbfd1c963e73461176ecd')
sha256sums=('80626172829077807c6f14506782ffd85a316f0c09539c3d64d4594edc756d0b'
'186ebb62ea7b289108475ead24044f9d71f3bfdae06998f92e70faf1ceb74952')
prepare() {
# fix build
patch -Np1 -d "$_pkgname" < "$_pkgname-fix-build.patch"
}
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('43e3fbb2fb1f0e90adf31c246fa0fccf')
sha256sums=('660148cb7e272859145de4da64f57ec959110bd6863af67f44ebf36fc5a7513e')
build() {
mkdir -p build

View file

@ -23,3 +23,5 @@ update_on:
repo: extra
provided: libmpi.so
strip_release: true
update_on_build:
- pkgbase: udunits