mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-paws.common: init, dependency of r-paws.storage, which is dependency of r-rarr
This commit is contained in:
parent
e1e1479c99
commit
d1c1a8f0cf
4 changed files with 90 additions and 0 deletions
51
BioArchLinux/r-paws.common/PKGBUILD
Normal file
51
BioArchLinux/r-paws.common/PKGBUILD
Normal file
|
@ -0,0 +1,51 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=paws.common
|
||||
_pkgver=0.6.3
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Paws Low-Level Amazon Web Services API"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=(Apache)
|
||||
depends=(
|
||||
pandoc
|
||||
r-base64enc
|
||||
r-curl
|
||||
r-digest
|
||||
r-httr
|
||||
r-jsonlite
|
||||
r-rcpp
|
||||
r-xml2
|
||||
)
|
||||
checkdepends=(
|
||||
r-mockery
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-crayon
|
||||
r-mockery
|
||||
r-rstudioapi
|
||||
r-testthat
|
||||
r-withr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('82a698babfc9709563622c16bfb4400f')
|
||||
sha256sums=('ae4b1521a0d4a4cc096232a2a1da127e21f9c64bd0374c5825c400afa04bfbc8')
|
||||
|
||||
build() {
|
||||
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 -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
17
BioArchLinux/r-paws.common/lilac.py
Normal file
17
BioArchLinux/r-paws.common/lilac.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
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():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_systemrequirements = "pandoc (>= 1.12.3) - http://pandoc.org",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
21
BioArchLinux/r-paws.common/lilac.yaml
Normal file
21
BioArchLinux/r-paws.common/lilac.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-base64enc
|
||||
- r-curl
|
||||
- r-digest
|
||||
- r-httr
|
||||
- r-jsonlite
|
||||
- r-rcpp
|
||||
- r-xml2
|
||||
repo_makedepends:
|
||||
- r-mockery
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: paws.common
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
|
@ -188,6 +188,7 @@ license_map = {
|
|||
"AGPL-3": "AGPL3",
|
||||
"Apache License": "Apache",
|
||||
"Apache License (== 2.0)": "Apache",
|
||||
"Apache License (>= 2.0)": "Apache",
|
||||
"Apache License 2.0": "Apache",
|
||||
"Artistic-2.0": "Artistic2.0",
|
||||
"BSD_2_clause + file LICENSE": "BSD",
|
||||
|
|
Loading…
Add table
Reference in a new issue