summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a6861f56928243f3c818d7d23f5b4b7085a3d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: getzze <getzze@gmail.com>
_cranver=1.0-15.1
pkgname=r-mco
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc='Multiple Criteria Optimization Algorithms and Related Functions'
arch=('x86_64')
url='https://cran.r-project.org/package=mco'
license=('GPL2')
depends=('r' 'r-cli')
source=("https://cran.r-project.org/src/contrib/mco_"$_cranver".tar.gz")
sha256sums=('3c13ebc8c1f1bfa18f3f95b3998c57fde5259876e92456b6c6d4c59bef07c193')

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