Date: Friday, April 7, 2023 @ 04:35:26
Author: felixonmars
Revision: 1440540
archrelease: copy trunk to community-staging-x86_64
Added:
python-pystemmer/repos/community-staging-x86_64/
python-pystemmer/repos/community-staging-x86_64/PKGBUILD
(from rev 1440539, python-pystemmer/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-pystemmer/repos/community-staging-x86_64/PKGBUILD (from rev
1440539, python-pystemmer/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-07 04:35:26 UTC (rev 1440540)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pystemmer
+pkgver=2.2.0.1
+pkgrel=2
+pkgdesc="Snowball stemming algorithms, for information retrieval"
+arch=('x86_64')
+license=('BSD' 'MIT')
+url="http://snowball.tartarus.org"
+depends=('python' 'libstemmer')
+makedepends=('cython' 'python-setuptools')
+source=("https://pypi.io/packages/source/P/PyStemmer/PyStemmer-$pkgver.tar.gz")
+sha512sums=('6692381f57c8822d252fac3ae48102b03f63cfa6aba9e963204bc4755217d4697d533ed058d1c6f7155982a3c7d81e82d83578f00fbff3bb94cbb5e1bcc26fc8')
+
+export PYSTEMMER_SYSTEM_LIBSTEMMER=1
+
+build() {
+ cd PyStemmer-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd PyStemmer-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" python runtests.py
+}
+
+package() {
+ cd PyStemmer-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}