summaryrefslogtreecommitdiff
path: root/pcr/python2-netaddr/PKGBUILD
blob: ff07e3c072aa154be4be7a6256a9f1d459b6c756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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.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"
}