aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-snowballstemmer/APKBUILD
blob: 4198b810a1a5b066425a83cd1b879f9cd36cc2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-snowballstemmer
pkgver=1.2.0
pkgrel=0
pkgdesc="Snowball stemming library collection for Python"
url="https://github.com/shibukawa/snowball_py"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev python-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/s/snowballstemmer/snowballstemmer-$pkgver.tar.gz"

_builddir="$srcdir"/snowballstemmer-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="51f2ef829db8129dd0f2354f0b209970  snowballstemmer-1.2.0.tar.gz"
sha256sums="6d54f350e7a0e48903a4e3b6b2cabd1b43e23765fbc975065402893692954191  snowballstemmer-1.2.0.tar.gz"
sha512sums="3359657867b9478bb58e6cc67a08212a490d5af07fed7098871b1e6a59def0031bd0c2a846cc9a0d70c94c64ba4d2ccb2f41afedde61d4a7235d26f68374bd02  snowballstemmer-1.2.0.tar.gz"