commit 575f4ac83166426fb9aa2db615f3178e153e3626 Author: xhaa123 Date: Mon Apr 29 11:32:45 2024 +0800 python-snowballstemmer 2.2.0-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4c960ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-snowballstemmer +pkgver=2.2.0 +pkgrel=1 +pkgdesc="Snowball stemming library collection for Python" +arch=('x86_64') +url="https://snowballstem.org" +license=('BSD') +depends=('python') +makedepends=('python-setuptools') +source=(https://files.pythonhosted.org/packages/source/s/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py build +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py install --root=${pkgdir} --optimize=1 +}