r-assertive.reflection: use archived CRAN source

This package has been removed from CRAN, but is required by r-multicrispr
This commit is contained in:
Pekka Ristola 2024-03-04 12:15:33 +02:00
parent b32233a974
commit e6d3077c07
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 20 additions and 20 deletions

View file

@ -3,28 +3,28 @@
_pkgname=assertive.reflection _pkgname=assertive.reflection
_pkgver=0.0-5 _pkgver=0.0-5
pkgname=r-${_pkgname,,} pkgname=r-${_pkgname,,}
pkgver=0.0.5 pkgver=${_pkgver//-/.}
pkgrel=6 pkgrel=6
pkgdesc='Assertions for Checking the State of R' pkgdesc="Assertions for Checking the State of R"
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
) )
optdepends=( optdepends=(
r-testthat r-testthat
) )
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") source=("https://cran.r-project.org/src/contrib/Archive/$_pkgname/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('c2ca9b27cdddb9b9876351afd2ebfaf0fbe72c636cd12aa2af5d64e33fbf34bd') md5sums=('e5b52b04481fe2b713a668262fb1c642')
b2sums=('3091e695854ccd6ac3d0febb22e8a45249f21a176b212e37b9f208bafc6aa526a60b2bfca648338b222cd6c7b6a2bb00a70349d3beda891f915e2703cccfaa10')
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

@ -5,7 +5,6 @@ maintainers:
repo_depends: repo_depends:
- r-assertive.base - r-assertive.base
update_on: update_on:
- regex: assertive.reflection_([\d._-]+).tar.gz - source: manual
source: regex manual: 0.0-5#e5b52b04481fe2b713a668262fb1c642
url: https://cran.r-project.org/package=assertive.reflection
- alias: r - alias: r