# Maintainer: Guoyi Zhang _pkgname=leidenbase _pkgver=0.1.27 pkgname=r-${_pkgname,,} pkgver=0.1.27 pkgrel=1 pkgdesc='R and C/C++ Wrappers to Run the Leiden find_partition() Function' arch=('x86_64') url="https://cran.r-project.org/package=${_pkgname}" license=('GPL') depends=( r r-igraph ) optdepends=( r-knitr r-rmarkdown r-testthat ) makedepends=( gcc-fortran ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") sha256sums=('c3168a68828aacfcf78c6c39415b4771f084c5b5c3c9b2e226dcb8cf909d7b27') build() { R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" } package() { install -dm0755 "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" } # vim:set ts=2 sw=2 et: