summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a489f0ea062030c5a59633f210c1cca93aa8c91 (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: Taekyung Kim <Taekyung.Kim.Maths@gmail.com>

_cranname=nloptr
_cranver=1.2.1
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-nloptr
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="R Interface to NLopt"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('LGPL3')
depends=('r')
optdepends=('r-testthat>=0.8.1' 'r-knitr' 'r-rmarkdown' 'r-inline>=0.3.14')
makedepends=()
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('3c475302f105dfe6a0e495ccdf4d78b1')

build(){
    R CMD INSTALL "${_pkgtar}" -l "$srcdir"
}
package() {
    install -dm0755 "$pkgdir"/usr/lib/R/library
    cp -a --no-preserve=ownership "$_cranname" "$pkgdir"/usr/lib/R/library
}