[arch-commits] Commit in python-snowballstemmer/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Sep 7 13:23:27 UTC 2019


    Date: Saturday, September 7, 2019 @ 13:23:27
  Author: felixonmars
Revision: 508413

upgpkg: python-snowballstemmer 1.9.1-1

Modified:
  python-snowballstemmer/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-07 13:18:22 UTC (rev 508412)
+++ PKGBUILD	2019-09-07 13:23:27 UTC (rev 508413)
@@ -3,36 +3,44 @@
 
 pkgbase=python-snowballstemmer
 pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
-pkgver=1.2.1
-pkgrel=3
+pkgver=1.9.1
+pkgrel=1
 arch=('any')
 pkgdesc="Snowball stemming library collection for Python"
 url='https://github.com/shibukawa/snowball_py'
 license=('BSD')
 makedepends=('python' 'python2')
-source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz")
-md5sums=('643b019667a708a922172e33a99bf2fa')
+source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$pkgver.tar.gz")
+md5sums=('00324762f8a0e6889353926e2c9767fb')
 
 prepare() {
-  cp -a snowballstemmer-${pkgver}{,-py2}
+  cp -a snowballstemmer-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/snowballstemmer-${pkgver}
+  cd "$srcdir"/snowballstemmer-$pkgver
   python setup.py build
 
-  cd "$srcdir"/snowballstemmer-${pkgver}-py2
+  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}
+  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
 }
 
 package_python2-snowballstemmer() {
@@ -39,8 +47,8 @@
   depends=('python2')
   optdepends=('python2-pystemmer: for improved performance')
 
-  cd "$srcdir"/snowballstemmer-${pkgver}-py2 
+  cd "$srcdir"/snowballstemmer-$pkgver-py2 
   python2 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
 }


More information about the arch-commits mailing list