diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4e11dd1bee7f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = r-polylabelr + pkgdesc = Find the Pole of Inaccessibility (Visual Center) of a Polygon + pkgver = 0.2.0 + pkgrel = 4 + url = https://cran.r-project.org/package=polylabelr + arch = x86_64 + license = MIT + depends = r + depends = r-rcpp + optdepends = r-covr + optdepends = r-sf + optdepends = r-spelling + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/polylabelr_0.2.0.tar.gz + sha256sums = c27de763f847d2bcca794b61d2a07b06beeba1421b736bdae2dda25728d86205 + +pkgname = r-polylabelr diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3d5230c281aa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=polylabelr +_pkgver=0.2.0 +pkgname=r-${_pkgname,,} +pkgver=0.2.0 +pkgrel=4 +pkgdesc='Find the Pole of Inaccessibility (Visual Center) of a Polygon' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('MIT') +depends=( + r + r-rcpp +) +optdepends=( + r-covr + r-sf + r-spelling + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('c27de763f847d2bcca794b61d2a07b06beeba1421b736bdae2dda25728d86205') + +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" + install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +} +# vim:set ts=2 sw=2 et: |