# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py-dnspython _pkgname=dnspython pkgver=1.15.0 pkgrel=0 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" source="http://www.dnspython.org/kits/$pkgver/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { mkdir -p "$pkgdir" } _py() { 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() { replaces="$pkgname" _py python2 } _py3() { _py python3 } md5sums="63a679089822fb86127867c315286dc5 dnspython-1.15.0.tar.gz" sha256sums="11598ae5735746e63921f8eebdfdee4a2e7d0ba842ebd57ba02682d4aed8244b dnspython-1.15.0.tar.gz" sha512sums="89792cc5033a1a93a4018cf437adf141364c8a072bf7e8eb4abbe7d7f6351e652129138405c0cee2173870618f480fba4cd30f3b4874f40f5c6f870c252f08ed dnspython-1.15.0.tar.gz"