diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 01:58:48 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 01:59:02 +0100 |
commit | f156a21df6d437fe58fa1aff3185b966350dec4d (patch) | |
tree | d246ff9f4dd9d74013318bfe31c6b462223da0fb | |
parent | f0ee0fd97729f8bfb685be95ca4ff3925cc10c9a (diff) | |
download | aports-f156a21df6d437fe58fa1aff3185b966350dec4d.tar.bz2 aports-f156a21df6d437fe58fa1aff3185b966350dec4d.tar.xz |
community/py-dnspython: fix abuild
-rw-r--r-- | community/py-dnspython/APKBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/community/py-dnspython/APKBUILD b/community/py-dnspython/APKBUILD index be51e2f957..67088f8d8d 100644 --- a/community/py-dnspython/APKBUILD +++ b/community/py-dnspython/APKBUILD @@ -8,10 +8,11 @@ pkgdesc="A DNS toolkit for Python" url="http://www.dnspython.org" arch="noarch" license="BSD" +depends="" makedepends="python2-dev py-setuptools python3-dev" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="http://www.dnspython.org/kits/$pkgver/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -24,16 +25,18 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" + local python="$1" + pkgdesc="$pkgdesc ${python:6:1}" + depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |