summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 186fdda9fc927d7733baab83d6f304a6964a2904 (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
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
_cranname=spelling
_cranver=2.1
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-spelling
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc='Spell checking common document formats including latex, markdown, manual pages, and description files.'
arch=('x86_64')
url="https://cran.r-project.org/package=${_cranname}"
license=('MIT')
depends=('r' 'r-commonmark' 'r-xml2' 'r-hunspell>=3.0' 'r-knitr')
optdepends=('r-pdftools')
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('e7758038652a039fc3404f7ba6930a21')

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