summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-11-15 22:10:10 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-11-15 22:10:10 (GMT)
commitfa6e63ee2fbb007113dd88e2ca43e16e2d6f70df (patch)
treed6a155f8c502ba15da1f99844740f6a1d0b67c83 /abs/core/python_modules
parent035983c13af8aa5d37a1aa4676b884e9cab73776 (diff)
downloadlinhes_pkgbuild-fa6e63ee2fbb007113dd88e2ca43e16e2d6f70df.zip
linhes_pkgbuild-fa6e63ee2fbb007113dd88e2ca43e16e2d6f70df.tar.gz
linhes_pkgbuild-fa6e63ee2fbb007113dd88e2ca43e16e2d6f70df.tar.bz2
python-snowballstemmer: 2.0.0
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-snowballstemmer/PKGBUILD49
1 files changed, 17 insertions, 32 deletions
diff --git a/abs/core/python_modules/python-snowballstemmer/PKGBUILD b/abs/core/python_modules/python-snowballstemmer/PKGBUILD
index 676c0e8..0351e53 100644
--- a/abs/core/python_modules/python-snowballstemmer/PKGBUILD
+++ b/abs/core/python_modules/python-snowballstemmer/PKGBUILD
@@ -1,47 +1,32 @@
-# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: xantares
-pkgbase=python-snowballstemmer
-pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
-pkgver=1.2.1
-pkgrel=2
+pkgname=python-snowballstemmer
+pkgver=2.0.0
+pkgrel=6
arch=('any')
pkgdesc="Snowball stemming library collection for Python"
-url='https://github.com/shibukawa/snowball_py'
+url='https://snowballstem.org'
license=('BSD')
-makedepends=('python' 'python2')
-source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz")
-md5sums=('643b019667a708a922172e33a99bf2fa')
-
-prepare() {
- cp -a snowballstemmer-${pkgver}{,-py2}
-}
+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}
+ cd "$srcdir"/snowballstemmer-$pkgver
python setup.py build
-
- cd "$srcdir"/snowballstemmer-${pkgver}-py2
- python2 setup.py build
}
-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 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+check() {
+ cd "$srcdir"/snowballstemmer-$pkgver/src
+ PYTHONPATH=. python sample/testapp.py english "what's this"
}
-package_python2-snowballstemmer() {
- depends=('python2')
- optdepends=('python2-pystemmer: for improved performance')
-
- cd "$srcdir"/snowballstemmer-${pkgver}-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
+package() {
+ cd "$srcdir"/snowballstemmer-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}