mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-httpcache: init for r-uniprot.ws
This commit is contained in:
parent
c85408b9c1
commit
e424bbc75d
3 changed files with 59 additions and 0 deletions
35
BioArchLinux/r-httpcache/PKGBUILD
Normal file
35
BioArchLinux/r-httpcache/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=httpcache
|
||||
_pkgver=1.2.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Query Cache for HTTP Clients'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r
|
||||
r-digest
|
||||
r-httr
|
||||
)
|
||||
optdepends=(
|
||||
r-httptest
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-spelling
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('a')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-httpcache/lilac.py
Normal file
12
BioArchLinux/r-httpcache/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
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('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
12
BioArchLinux/r-httpcache/lilac.yaml
Normal file
12
BioArchLinux/r-httpcache/lilac.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
repo_depends:
|
||||
- r-digest
|
||||
- r-httr
|
||||
update_on:
|
||||
- regex: httpcache_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=httpcache
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue