# Contributor: Sebastien LEDUC # Contributor: Gilles CHAUVIN # Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES pkgname=python2-netaddr pkgver=0.7.11 pkgrel=3 pkgdesc="A pure Python network address representation and manipulation library" arch=('any') license=('BSD') url="http://github.com/drkjam/netaddr/" depends=('python2') optdepends=('ipython2: used to work with the netaddr interractive command') source=("https://github.com/drkjam/netaddr/archive/release-${pkgver}.tar.gz") package() { cd "$srcdir/netaddr-release-$pkgver/" python2 setup.py install --root="$pkgdir/" --optimize=1 # the netaddr command is also provided by the python-netaddr package mv "$pkgdir/usr/bin/netaddr" "$pkgdir/usr/bin/netaddr2" }