mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
added aur/python2-ipaddr
This commit is contained in:
parent
4ed4a835b7
commit
6fa3e0beab
1 changed files with 29 additions and 0 deletions
29
aur/python2-ipaddr/PKGBUILD
Normal file
29
aur/python2-ipaddr/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Jonathan Liu <net147@gmail.com>
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=python2-ipaddr
|
||||
_realpkgname=ipaddr
|
||||
pkgver=2.1.9
|
||||
pkgrel=2
|
||||
pkgdesc="An IPv4/IPv6 manipulation library in Python"
|
||||
arch=('any')
|
||||
url="http://code.google.com/p/ipaddr-py/"
|
||||
license=('APACHE')
|
||||
depends=('python2')
|
||||
makedepends=('python2-distribute')
|
||||
source=("http://ipaddr-py.googlecode.com/files/${_realpkgname}-${pkgver}.tar.gz")
|
||||
md5sums=('c8943c95fdf0d7d99bc26b484e1bbd99')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_realpkgname}-${pkgver}"
|
||||
find "${srcdir}" -name '*.py' -exec sed -i -r "s|#!/usr/bin/python$|#!/usr/bin/python2|" {} +
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_realpkgname}-${pkgver}"
|
||||
python2 setup.py install --root="${pkgdir}" -O1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in a new issue