summaryrefslogtreecommitdiff
path: root/pcr/python2-netaddr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-01 22:21:00 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-01 22:21:00 -0300
commit888ba65470b25311d05aa55c9f88fb6736ece938 (patch)
tree139490225c3190a6f5728d3756fd17ea9038467b /pcr/python2-netaddr
parente08edc31359b2fdc2baf4ea9da246c6fac717ab6 (diff)
parentbf725c5b41e91a279bd79c6749b4b8950005d456 (diff)
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python2-netaddr')
-rw-r--r--pcr/python2-netaddr/PKGBUILD22
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"
}