# Maintainer: Guoyi Zhang # Contributor: Robert Greener # Contributor: getzze _pkgname=mco _pkgver=1.16 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=2 pkgdesc="Multiple Criteria Optimization Algorithms and Related Functions" arch=(x86_64) url="https://cran.r-project.org/package=$_pkgname" license=('GPL-2.0-only') depends=( r ) optdepends=( r-scatterplot3d r-testthat ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('7ff9cdd831212a225ef3a34876abeb4a') b2sums=('b9a88427333b9671fbfaf595958da63f176aab2c4f8c724bfee6ee9c959dee7f7a9d43c7608a74fbdf9e00571c838c829ce677333cee9912aad706f0343b2990') build() { mkdir build R CMD INSTALL -l build "$_pkgname" } package() { install -d "$pkgdir/usr/lib/R/library" cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" }