blob: 776a31f12b2b81476a06fe89125cc326196d840c (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# 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=knitr
_pkgver=1.45
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A General-Purpose Package for Dynamic Report Generation in R"
arch=(any)
url="https://cran.r-project.org/package=${_pkgname}"
license=(GPL)
depends=(
r-evaluate
r-highr
r-xfun
r-yaml
)
optdepends=(
'pandoc: R Markdown v2 and reStructuredText support'
'rst2pdf: rst2pdf() support'
r-bslib
r-curl
r-dbi
r-digest
r-formatr
r-gifski
r-gridsvg
r-htmlwidgets
r-jpeg
r-juliacall
r-magick
r-markdown
r-png
r-ragg
r-reticulate
r-rgl
r-rlang
r-rmarkdown
r-rstudioapi
r-sass
r-showtext
r-styler
r-svglite
r-targets
r-testit
r-tibble
r-tikzdevice
r-tinytex
r-webshot
r-xml2
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('334f8f963b3d8e9e0ce5c278775cb7ec')
sha256sums=('ee2edea53bc53efa51d131ab5a0b0c829c0f950b79d3c6ee34705354bf7584fb')
build() {
mkdir -p build
R CMD INSTALL "$_pkgname" -l build
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|