Skip to content
Snippets Groups Projects
Commit f156a21d authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/py-dnspython: fix abuild

parent f0ee0fd9
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment