diff options
author | Sukanka | 2022-06-07 00:49:46 +0800 |
---|---|---|
committer | Sukanka | 2022-06-07 00:49:46 +0800 |
commit | 8adb3541aa52415e46a49ece7f1024059978543a (patch) | |
tree | 02eb3e36d5e4150af68416cef0c90e856d62b894 | |
download | aur-8adb3541aa52415e46a49ece7f1024059978543a.tar.gz |
add r-stopwords
-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..07f3eaed62d3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = r-stopwords + pkgdesc = Multilingual Stopword Lists + pkgver = 2.3 + pkgrel = 4 + url = https://cran.r-project.org/package=stopwords + arch = any + license = MIT + depends = r + depends = r-isocodes + optdepends = r-covr + optdepends = r-quanteda + optdepends = r-spelling + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/stopwords_2.3.tar.gz + sha256sums = c5ec1c6ab1bad1786d87d7823d4b63abc94d2fd84ed7d8e985906e96fb6321b2 + +pkgname = r-stopwords diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..51c17699ca62 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=stopwords +_pkgver=2.3 +pkgname=r-${_pkgname,,} +pkgver=2.3 +pkgrel=4 +pkgdesc='Multilingual Stopword Lists' +arch=('any') +url="https://cran.r-project.org/package=${_pkgname}" +license=('MIT') +depends=( + r + r-isocodes +) +optdepends=( + r-covr + r-quanteda + r-spelling + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('c5ec1c6ab1bad1786d87d7823d4b63abc94d2fd84ed7d8e985906e96fb6321b2') + +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: |