summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b67be03f08480a3aef5d46199e803d9adc77c7a (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: Dringsim <dringsim@qq.com>

_cranname=mathml
_cranver=1.2
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Translate R Expressions to MathML and LaTeX/MathJax"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('BSD')
depends=('r-knitr' 'r-rolog')
makedepends=()
optdepends=('r-rmarkdown'
	'r-testthat')
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('0471EE461CFD956859A63A4D15D2461B664F55B48FA5168449F1D7C4C1CFB986')

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