# Maintainer: Guoyi Zhang # Contributor: Robert Greener # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com _pkgname=polynom _pkgver=1.4-1 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=11 pkgdesc="A Collection of Functions to Implement a Class for Univariate Polynomial Manipulations" arch=(any) url="https://cran.r-project.org/package=$_pkgname" license=('GPL-2.0-only') depends=( r ) optdepends=( r-knitr r-rmarkdown ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('5511178c91fd6eb33fdeefc64deb0546') b2sums=('47870cddc2998ffe1c764d26f9624e9eb0024bd0f8336e1786d197515d2db1bf3c6929598dae8c8944deb184bf323e27d637361d81d04f5cb8cee20f840f6287') 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" }