From 6c3ed4ed64aaa5dc8e7450a11b60ea26777b0391 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Thu, 9 Dec 2010 23:57:10 +0000 Subject: python-iplib: recompile --- abs/core/python_modules/python-iplib/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 abs/core/python_modules/python-iplib/PKGBUILD diff --git a/abs/core/python_modules/python-iplib/PKGBUILD b/abs/core/python_modules/python-iplib/PKGBUILD new file mode 100755 index 0000000..39d0b55 --- /dev/null +++ b/abs/core/python_modules/python-iplib/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=python-iplib +_libname=iplib +pkgver=1.1 +pkgrel=3 +pkgdesc="IPlib is a Python module useful to convert amongst many different notations and to manage couples of address/netmask in the CIDR notation." +url="http://www.pymedia.org" +arch=('i686') +license=('GPL') +depends=('python2') +#makedepends=('python2>=2.3') +source=(http://erlug.linux.it/~da/soft/iplib/iplib-1.1.tar.gz) +md5sums=('3437ddbfc1986b2d06e7f4a0724ac5a0') + +build() { + cd ${srcdir}/${_libname}-${pkgver} + + find "$srcdir/${_libname}-${pkgver}" -name '*.py' | \ + xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" + + yes "" | python2 setup.py install --root=${pkgdir} --prefix=/usr + + find "$pkgdir/" -name '*.py' | \ + xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" + +} -- cgit v0.12