[arch-commits] Commit in python-snowballstemmer/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 15:11:14 UTC 2021


    Date: Tuesday, November 30, 2021 @ 15:11:14
  Author: felixonmars
Revision: 1057781

archrelease: copy trunk to community-staging-any

Added:
  python-snowballstemmer/repos/community-staging-any/
  python-snowballstemmer/repos/community-staging-any/PKGBUILD
    (from rev 1057779, python-snowballstemmer/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-snowballstemmer/repos/community-staging-any/PKGBUILD (from rev 1057779, python-snowballstemmer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 15:11:14 UTC (rev 1057781)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: xantares
+
+pkgname=python-snowballstemmer
+pkgver=2.2.0
+pkgrel=2
+arch=('any')
+pkgdesc="Snowball stemming library collection for Python"
+url='https://snowballstem.org'
+license=('BSD')
+depends=('python')
+optdepends=('python-pystemmer: for improved performance')
+makedepends=('python-setuptools')
+source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$pkgver.tar.gz")
+sha512sums=('f1dee83e06fc79ffb250892fe62c75e3393b9af07fbf7cde413e6391870aa74934302771239dea5c9bc89806684f95059b00c9ffbcf7340375c9dd8f1216cd37')
+
+build() {
+  cd "$srcdir"/snowballstemmer-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/snowballstemmer-$pkgver/src
+  PYTHONPATH=. python sample/testapp.py english "what's this"
+}
+
+package() {
+  cd "$srcdir"/snowballstemmer-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list