[arch-commits] Commit in python-snowballstemmer/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 4 15:35:47 UTC 2019
Date: Friday, October 4, 2019 @ 15:35:46
Author: felixonmars
Revision: 512741
archrelease: copy trunk to community-testing-any
Added:
python-snowballstemmer/repos/community-testing-any/
python-snowballstemmer/repos/community-testing-any/PKGBUILD
(from rev 512740, python-snowballstemmer/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-snowballstemmer/repos/community-testing-any/PKGBUILD (from rev 512740, python-snowballstemmer/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-10-04 15:35:46 UTC (rev 512741)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: xantares
+
+pkgbase=python-snowballstemmer
+pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
+pkgver=2.0.0
+pkgrel=1
+arch=('any')
+pkgdesc="Snowball stemming library collection for Python"
+url='https://snowballstem.org'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$pkgver.tar.gz")
+md5sums=('c05ec4a897be3c953c8b8b844c4241d4')
+
+prepare() {
+ cp -a snowballstemmer-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/snowballstemmer-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/snowballstemmer-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/snowballstemmer-$pkgver/src
+ PYTHONPATH=. python sample/testapp.py english "what's this"
+
+ cd "$srcdir"/snowballstemmer-$pkgver-py2/src
+ PYTHONPATH=. python2 sample/testapp.py english "what's this"
+}
+
+package_python-snowballstemmer() {
+ depends=('python')
+ optdepends=('python-pystemmer: for improved performance')
+
+ cd "$srcdir"/snowballstemmer-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-snowballstemmer() {
+ depends=('python2')
+ optdepends=('python2-pystemmer: for improved performance')
+
+ cd "$srcdir"/snowballstemmer-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
More information about the arch-commits
mailing list