summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-snowballstemmer
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-01 17:05:42 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-01 17:05:42 (GMT)
commit07b467c2bcad716b35da54a0e445286984c7f3d2 (patch)
treeb68b3994940c1d2292541113454b903c01f207c1 /abs/core/python_modules/python-snowballstemmer
parentc61f227362e721cc183757906a777b229adfbe68 (diff)
downloadlinhes_pkgbuild-07b467c2bcad716b35da54a0e445286984c7f3d2.zip
linhes_pkgbuild-07b467c2bcad716b35da54a0e445286984c7f3d2.tar.gz
linhes_pkgbuild-07b467c2bcad716b35da54a0e445286984c7f3d2.tar.bz2
python-snowballstemmer: dep of python-sphinx
Diffstat (limited to 'abs/core/python_modules/python-snowballstemmer')
-rw-r--r--abs/core/python_modules/python-snowballstemmer/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-snowballstemmer/PKGBUILD b/abs/core/python_modules/python-snowballstemmer/PKGBUILD
new file mode 100644
index 0000000..676c0e8
--- /dev/null
+++ b/abs/core/python_modules/python-snowballstemmer/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: xantares
+
+pkgbase=python-snowballstemmer
+pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
+pkgver=1.2.1
+pkgrel=2
+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')
+
+prepare() {
+ cp -a snowballstemmer-${pkgver}{,-py2}
+}
+
+build() {
+ 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
+}
+
+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 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}