summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-18 22:10:56 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-18 22:10:56 (GMT)
commit183fc18e6293487a1cacab11557d4c68b38ff1d2 (patch)
tree0c654f019b517bfd2578d95191aac015e73c9414 /abs/core
parentc629d0d42e54e88580628333dabec2fa278b678d (diff)
downloadlinhes_pkgbuild-183fc18e6293487a1cacab11557d4c68b38ff1d2.zip
linhes_pkgbuild-183fc18e6293487a1cacab11557d4c68b38ff1d2.tar.gz
linhes_pkgbuild-183fc18e6293487a1cacab11557d4c68b38ff1d2.tar.bz2
python-iplib: attempt to fix
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/python-iplib/PKGBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/abs/core/python-iplib/PKGBUILD b/abs/core/python-iplib/PKGBUILD
index 5dea0ec..b41278b 100755
--- a/abs/core/python-iplib/PKGBUILD
+++ b/abs/core/python-iplib/PKGBUILD
@@ -1,16 +1,25 @@
pkgname=python-iplib
+_libname=iplib
pkgver=1.1
-pkgrel=1
+pkgrel=2
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')
+#makedepends=('python2>=2.3')
source=(http://erlug.linux.it/~da/soft/iplib/iplib-1.1.tar.gz)
md5sums=('3437ddbfc1986b2d06e7f4a0724ac5a0')
build() {
- cd $startdir/src/iplib*
- yes "" | python2 setup.py install --root=$startdir/pkg --prefix=/usr
+ 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|"
+
}