~dricottone/pkgbuilds

ref: b05d901f326db1fad48d7b14c09f047b82525d06 pkgbuilds/r-markdown/PKGBUILD -rw-r--r-- 785 bytes
b05d901fDominic Ricottone Added r-markdown 1 year, 26 days 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=markdown
_cranver=1.11
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Render Markdown with 'commonmark'"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=2.11.1' 'r-commonmark>=1.9.0' 'r-xfun>=0.38' r-utils)
optdepends=(r-knitr r-rmarkdown r-yaml r-rcurl)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('47fc61755a952ce9716c12de2daf7940fcf306747bd47ad31dd364bbccca5f14')

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