# Maintainer: Pekka Ristola # Contributor: Guoyi Zhang # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Alex Branham _pkgname=gower _pkgver=1.0.1 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=3 pkgdesc="Gower's Distance" arch=(x86_64) url="https://cran.r-project.org/package=$_pkgname" license=('GPL-3.0-only') depends=( r ) checkdepends=( r-tinytest ) optdepends=( r-tinytest ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('e83037d172ecc81bf45b69dbd902d216') b2sums=('e2d82eda30b05b838fcea9d02f0ddea53ca89e81e6afac785342e6998ed5144e845fdfe523d050d75762718e304ea6bc8a794b7cc9fb03de55704d6506e55454') build() { mkdir build R CMD INSTALL -l build "$_pkgname" } check() { cd "$_pkgname/tests" R_LIBS="$srcdir/build" Rscript --vanilla tinytest.R } package() { install -d "$pkgdir/usr/lib/R/library" cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" }