blob: 2f034286c57754982edcbf1e5cede3c8d7540b61 (
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
|
# 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
_pkgname=bslib
_pkgver=0.8.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Custom 'Bootstrap' 'Sass' Themes for 'shiny' and 'rmarkdown'"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('MIT')
depends=(
r-base64enc
r-cachem
r-fastmap
r-htmltools
r-jquerylib
r-jsonlite
r-lifecycle
r-memoise
r-mime
r-rlang
r-sass
)
optdepends=(
r-bsicons
r-curl
r-fontawesome
r-future
r-ggplot2
r-knitr
r-magrittr
r-rappdirs
r-rmarkdown
r-shiny
r-testthat
r-thematic
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('bb7b56a88b3a8cb1901dfcec51d58364')
b2sums=('d47993fddb44a68dd97ddb1d185f69957477f8da1824d99377113cb0e10051abc39fd195ec607f5f553304dddad680130c6292055b7faf76b444790ad7899662')
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"
}
|