# Maintainer: Guoyi Zhang # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com _pkgname=plotrix _pkgver=3.8-4 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=4 pkgdesc="Various Plotting Functions" arch=(any) url="https://cran.r-project.org/package=$_pkgname" license=('GPL-2.0-or-later') depends=( r ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('553079f4dd3f183030b5157ae00cb5ae') b2sums=('e4f9da834540b389c3b4d279338163d1844dbb27067bf75b99a7316f9089eb9d9e62ff67edb69e4b6798a1d7a1a403f28d0567a03bcb04fba0b96e408901aac8') 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" }