blob: 390517dffb54ea6e9011f512688bfeafd4f5396f (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-ipaddress
pkgver=1.0.14
pkgrel=0
pkgdesc="IPv4/IPv6 manipulation library"
url="https://github.com/phihag/ipaddress"
arch="noarch"
license="PSF"
depends=""
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/i/ipaddress/ipaddress-$pkgver.tar.gz"
_builddir="$srcdir"/ipaddress-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="e2f2f6593b2b8a7e8abba0fbdf33f046 ipaddress-1.0.14.tar.gz"
sha256sums="226f4be44c6cb64055e23060848266f51f329813baae28b53dc50e93488b3b3e ipaddress-1.0.14.tar.gz"
sha512sums="fb33b484ca435f4e8817c735a1084f2fa749abca4643a10be644003fdb73cc9205fc28f484ef96d2db90e8b27d8a238d1d7cf20140f7942e39be12c7524e8d6f ipaddress-1.0.14.tar.gz"
|