From fa6e63ee2fbb007113dd88e2ca43e16e2d6f70df Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 15 Nov 2020 22:10:10 +0000 Subject: python-snowballstemmer: 2.0.0 --- .../python_modules/python-snowballstemmer/PKGBUILD | 49 ++++++++-------------- 1 file 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 # 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 } -- cgit v0.12