[arch-commits] Commit in python-snowballstemmer/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:19:08 UTC 2015
Date: Saturday, September 19, 2015 @ 18:19:07
Author: foutrelis
Revision: 140930
archrelease: copy trunk to community-staging-any
Added:
python-snowballstemmer/repos/community-staging-any/
python-snowballstemmer/repos/community-staging-any/PKGBUILD
(from rev 140929, python-snowballstemmer/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-snowballstemmer/repos/community-staging-any/PKGBUILD (from rev 140929, python-snowballstemmer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 16:19:07 UTC (rev 140930)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer:
+# Contributor: xantares
+
+pkgbase=python-snowballstemmer
+pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
+pkgver=1.2.0
+pkgrel=2
+arch=(any)
+pkgdesc="Snowball stemming library collection for Python"
+url='https://github.com/shibukawa/snowball_py'
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools)
+source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz")
+md5sums=('51f2ef829db8129dd0f2354f0b209970')
+
+build() {
+ cp -r ${srcdir}/snowballstemmer-${pkgver} ${srcdir}/snowballstemmer-${pkgver}-py2
+
+ cd "$srcdir"/snowballstemmer-${pkgver}
+ python setup.py build
+
+ cd "$srcdir"/snowballstemmer-${pkgver}-py2
+ python2 setup.py build
+}
+
+package_python-snowballstemmer() {
+ 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() {
+ cd "$srcdir"/snowballstemmer-${pkgver}-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}
More information about the arch-commits
mailing list