diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-25 14:44:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-25 14:44:02 +0200 |
commit | ba431ffb57eccecc6074e0428889c861962447d2 (patch) | |
tree | 21a7c5be074cdd1f3f4518d4fde5a32bf8cd07f3 | |
parent | 4b7d2799e1e14b9c71390db704b6096827d98471 (diff) | |
download | aports-ba431ffb57eccecc6074e0428889c861962447d2.tar.bz2 aports-ba431ffb57eccecc6074e0428889c861962447d2.tar.xz |
main/py-snowballstemmer: improve abuild, s/python-dev/python2-dev/
-rw-r--r-- | main/py-snowballstemmer/APKBUILD | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/main/py-snowballstemmer/APKBUILD b/main/py-snowballstemmer/APKBUILD index 4198b810a1..09c36f4433 100644 --- a/main/py-snowballstemmer/APKBUILD +++ b/main/py-snowballstemmer/APKBUILD @@ -1,6 +1,7 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: pkgname=py-snowballstemmer +_pkgname=snowballstemmer pkgver=1.2.0 pkgrel=0 pkgdesc="Snowball stemming library collection for Python" @@ -8,30 +9,17 @@ 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 -} +makedepends="python2-dev" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" python setup.py build || return 1 } package() { - cd "$_builddir" + cd "$builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } |