diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python2-netaddr/PKGBUILD | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/pcr/python2-netaddr/PKGBUILD b/pcr/python2-netaddr/PKGBUILD index b9d4da022..ff07e3c07 100644 --- a/pcr/python2-netaddr/PKGBUILD +++ b/pcr/python2-netaddr/PKGBUILD @@ -1,19 +1,23 @@ -# Contributor (Arch): Sebastien LEDUC <sebastien@sleduc.fr> -# Contributor (Arch): Gilles CHAUVIN <gcnweb at gmail dot com> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> +# Contributor: Sebastien LEDUC <sebastien@sleduc.fr> +# Contributor: Gilles CHAUVIN <gcnweb at gmail dot com> +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=python2-netaddr -pkgver=0.7.10 -pkgrel=1 +pkgver=0.7.11 +pkgrel=3 pkgdesc="A pure Python network address representation and manipulation library" -arch=('i686' 'x86_64') +arch=('any') license=('BSD') url="http://github.com/drkjam/netaddr/" depends=('python2') -source=("http://github.com/downloads/drkjam/netaddr/netaddr-$pkgver.tar.gz") +optdepends=('ipython2: used to work with the netaddr interractive command') +source=("https://github.com/drkjam/netaddr/archive/release-${pkgver}.tar.gz") -build() { - cd "$srcdir/netaddr-$pkgver/" +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" } |