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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 14:10:17 UTC 2020


    Date: Monday, November 9, 2020 @ 14:10:17
  Author: felixonmars
Revision: 746929

archrelease: copy trunk to community-staging-any

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

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

Copied: python-snowballstemmer/repos/community-staging-any/PKGBUILD (from rev 746928, python-snowballstemmer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 14:10:17 UTC (rev 746929)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: xantares
+
+pkgname=python-snowballstemmer
+pkgver=2.0.0
+pkgrel=5
+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")
+md5sums=('c05ec4a897be3c953c8b8b844c4241d4')
+
+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