mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# 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
|
|
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
|
|
# Contributor: Ward Segers <w@rdsegers.be>
|
|
# Contributor: Alex Branham <branham@utexas.edu>
|
|
|
|
_pkgname=jsonlite
|
|
_pkgver=1.9.0
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="A Simple and Robust JSON Parser and Generator for R"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('MIT')
|
|
depends=(
|
|
r
|
|
)
|
|
optdepends=(
|
|
r-httr
|
|
r-knitr
|
|
r-r.rsp
|
|
r-rmarkdown
|
|
r-sf
|
|
r-testthat
|
|
r-vctrs
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('a09f427d2ea2ef20f006101102d3cafc')
|
|
b2sums=('4564549b6dc79af543db989dcea602096a8b2e8ef432e974552ec2691c813c0eaeb35beac4a5e3bf54ca12a1b8972fc8800510c1b083f838c40297311480bd80')
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname"
|
|
}
|
|
|
|
package() {
|
|
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"
|
|
}
|