diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-02 16:02:03 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-02 16:04:49 +0200 |
commit | 8f3c50960631f11e2bffcda00bc3e71d614a293e (patch) | |
tree | 6bfb200ca7f32fa6546bf43b0ee31155906e61dc | |
parent | 1abd176afbbd884e8df61fcde146b931a3237313 (diff) | |
download | aports-8f3c50960631f11e2bffcda00bc3e71d614a293e.tar.bz2 aports-8f3c50960631f11e2bffcda00bc3e71d614a293e.tar.xz |
main/py-singledispatch: improve abuild
-rw-r--r-- | main/py-singledispatch/APKBUILD | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/main/py-singledispatch/APKBUILD b/main/py-singledispatch/APKBUILD index e8341cf67b..809b57d18a 100644 --- a/main/py-singledispatch/APKBUILD +++ b/main/py-singledispatch/APKBUILD @@ -7,32 +7,19 @@ pkgdesc="This library brings functools.singledispatch from Python 3.4 to Python url="https://bitbucket.org/ambv/singledispatch" arch="noarch" license="MIT" -depends="python" -depends_dev="py-setuptools" -makedepends="python-dev $depends_dev" -install="" -subpackages="" +depends="python2" +makedepends="py-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$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 -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - python setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } md5sums="af2fc6a3d6cc5a02d0bf54d909785fcb singledispatch-3.4.0.3.tar.gz" |