~dricottone/pkgbuilds

ref: 566594ec0cb35e09e8ed80a37f1bd8f308116860 pkgbuilds/r-knitr/PKGBUILD -rw-r--r-- 1.1 KiB
566594ecDominic Ricottone Added r-jquerylib 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=knitr
_cranver=1.45
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="A General-Purpose Package for Dynamic Report Generation in R"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL)
depends=('r>=3.3.0' 'r-evaluate>=0.15' r-highr 'r-yaml>=2.1.19' 'r-xfun>=0.39' r-methods r-tools)
optdepends=(r-markdown r-formatr r-testit r-digest r-rgl r-rmarkdown r-htmlwidgets r-webshot r-tikzdevice r-tinytex r-reticulate r-juliacall r-magick r-png r-jpeg r-gifski r-xml2 r-dbi r-showtext r-tibble r-sass r-bslib r-ragg r-gridsvg r-styler r-targets r-codetools r-curl r-rlang r-rstudioapi 'pandoc: R Markdown v2 and reStructuredText support' 'rst2pdf: rst2pdf() support')
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('ee2edea53bc53efa51d131ab5a0b0c829c0f950b79d3c6ee34705354bf7584fb')

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"
}