Packages/BioArchLinux/r-showtextdb/PKGBUILD

31 lines
847 B
Bash

# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Alexander Bocken <alexander@bocken.org>
_pkgname=showtextdb
_pkgver=3.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=4
pkgdesc="Font Files for the 'showtext' Package"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(Apache)
depends=(
r-sysfonts
)
optdepends=(
r-curl
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('f70b8177f5cd2805148bf01822ed2c19')
b2sums=('106544f0cabaea786d1386097ce0f23a75a97b989791390982ba2fd71f6ade604d0f56509aea41f4c77010f928bd169f91efefaae6de3df2cd6838fcfb43e2af')
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"
}