~dricottone/pkgbuilds

ref: 616affc729e420336f8ac72df8c9e3eb7da649b0 pkgbuilds/r-textshaping/PKGBUILD -rw-r--r-- 844 bytes
616affc7Dominic Ricottone Added r-textshaping 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=textshaping
_cranver=0.3.7
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Bindings to the 'HarfBuzz' and 'Fribidi' Libraries for Text Shaping"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.2.0' 'r-systemfonts>=1.0.0' 'r-cpp11>=0.2.1' freetype2 harfbuzz fribidi)
optdepends=(r-covr r-knitr r-rmarkdown)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('fa924dbe1fb4138b80d6c26ee42f4203843f1d34f77e2a5e42514e6fcc97ec42')

build() {
  R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
}

package() {
  install -dm0755 "${pkgdir}/usr/lib/R/library"

  cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}