r-puma: fix #38

This commit is contained in:
Butui Hu 2022-07-05 11:40:35 +08:00
parent 2c4b6b7d90
commit 96078f6435
3 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=puma
_pkgver=3.36.0
_pkgver=3.38.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
@ -27,9 +27,14 @@ optdepends=(
r-snow
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('a')
sha256sums=('2b2c41a391f352854b0a303a9861c3806078867bb626c65d2405143964b17e5b')
prepare() {
echo "CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection" > "${srcdir}/Makevars"
}
build() {
R_MAKEVARS_USER="${srcdir}/Makevars" \
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
}