aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-dnspython/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-09 01:58:48 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-09 01:59:02 +0100
commitf156a21df6d437fe58fa1aff3185b966350dec4d (patch)
treed246ff9f4dd9d74013318bfe31c6b462223da0fb /community/py-dnspython/APKBUILD
parentf0ee0fd97729f8bfb685be95ca4ff3925cc10c9a (diff)
downloadaports-f156a21df6d437fe58fa1aff3185b966350dec4d.tar.gz
aports-f156a21df6d437fe58fa1aff3185b966350dec4d.tar.bz2
aports-f156a21df6d437fe58fa1aff3185b966350dec4d.tar.xz
community/py-dnspython: fix abuild
Diffstat (limited to 'community/py-dnspython/APKBUILD')
-rw-r--r--community/py-dnspython/APKBUILD13
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() {