[lilac] updated to 1.3.1-2

This commit is contained in:
BioArchLinuxBot 2023-09-09 12:04:37 +00:00
parent e0bbb6e347
commit f78ccdde69
2 changed files with 35 additions and 17 deletions

View file

@ -1,18 +1,18 @@
pkgbase = r-later
pkgdesc = Utilities for Scheduling Functions to Execute Later with Event Loops
pkgver = 1.3.1
pkgrel = 1
pkgrel = 2
url = https://cran.r-project.org/package=later
arch = x86_64
license = MIT
depends = r
checkdepends = r-testthat
depends = r-rcpp
depends = r-rlang
depends = gcc
optdepends = r-knitr
optdepends = r-rmarkdown
optdepends = r-testthat
source = https://cran.r-project.org/src/contrib/later_1.3.1.tar.gz
md5sums = 04a2e2203f3b4c78477378eb414f80ca
sha256sums = 23eed681f0b9eacebbc3c6a5ba14ee0b676a4bf6e69af194c5a36edfe11464ac
pkgname = r-later

View file

@ -1,21 +1,22 @@
# system requirements: C++11
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
_pkgname=later
_pkgver=1.3.1
pkgname=r-${_pkgname,,}
pkgver=1.3.1
pkgrel=1
pkgdesc='Utilities for Scheduling Functions to Execute Later with Event Loops'
arch=('x86_64')
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Utilities for Scheduling Functions to Execute Later with Event Loops"
arch=(x86_64)
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
license=(MIT)
depends=(
r
r-rcpp
r-rlang
gcc
)
checkdepends=(
r-testthat
)
optdepends=(
r-knitr
@ -23,15 +24,32 @@ optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('04a2e2203f3b4c78477378eb414f80ca')
sha256sums=('23eed681f0b9eacebbc3c6a5ba14ee0b676a4bf6e69af194c5a36edfe11464ac')
prepare() {
# skip failing tests
cd "$_pkgname/tests/testthat"
sed -i '/"Interrupt while running in private loop won'\''t result in stuck loop"/a\ \ skip("not working")' \
test-private-loops.R
sed -i '/"interrupt and exception handling"/a\ \ skip("not working")' \
test-run_now.R
}
build() {
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
mkdir -p build
R CMD INSTALL "$_pkgname" -l build
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set ts=2 sw=2 et: