summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4ceb2fee6165cf6a56e9fe2615319aea98ea332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Alex Branham <alex.branham@gmail.com>
_cranver=1.6
pkgname=r-commonmark
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc='High Performance CommonMark and Github Markdown Rendering in R'
arch=('x86_64')
url='https://cran.r-project.org/package=commonmark'
license=('BSD_2_clause + file LICENSE')
depends=('r' )
optdepends=('r-curl')
source=("https://cran.r-project.org/src/contrib/commonmark_"$_cranver".tar.gz")
md5sums=('a593fa53ddc7194b0053e1a11fec73d9')

build(){
    R CMD INSTALL commonmark_"$_cranver".tar.gz -l "$srcdir"
}
package() {
    install -dm0755 "$pkgdir"/usr/lib/R/library
    cp -a --no-preserve=ownership commonmark "$pkgdir"/usr/lib/R/library
}