summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1792631a4459ebef556a8c55c5949f3821d3d59b (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
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=markdown
_cranver=1.1
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-markdown
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Markdown Rendering for R"
arch=('x86_64' 'i686')
url="https://cran.r-project.org/package=${_cranname}"
license=('GPL2')
depends=('r' 'r-mime>=0.3' 'r-xfun')

optdepends=('r-knitr' 'r-rcurl')

source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('51fedf7d7f62da1f828a80bd71ccba1d')

build(){
    R CMD INSTALL ${_pkgtar} -l $srcdir
}
package() {
    install -d "$pkgdir/usr/lib/R/library"
    cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
}