blob: c7f77795e0bc7a842429ae27ec1ff5752fd0f2ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-dnspython
_pkgname=dnspython
pkgver=1.14.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"
install=""
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"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
}
md5sums="d8971c0c957abceb92c7d36170d07bc6 dnspython-1.14.0.tar.gz"
sha256sums="1406421e208931a66fef38ef0106711e1da277c9f40ed935ec1ab7374c1687fc dnspython-1.14.0.tar.gz"
sha512sums="c2fa2148ea8c2c33c43dc7c2a08798bb687c6e8ad506119d31adb17792c667f973f415ac3582e2fb36ad25c95b611eee558ffc02d81da17626ecf1ee21ab5c0a dnspython-1.14.0.tar.gz"
|