summaryrefslogtreecommitdiffstats
path: root/abs/core/python-netifaces/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-18 01:56:07 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-18 01:56:07 (GMT)
commitd1f77047874dae53231805117878c25ec240bb43 (patch)
tree91f4c9434d1754b86a37357c4d10ecc8d842f0f1 /abs/core/python-netifaces/PKGBUILD
parentfca6341efb75890fb86fdc9a48526dfdd63661de (diff)
downloadlinhes_pkgbuild-d1f77047874dae53231805117878c25ec240bb43.zip
linhes_pkgbuild-d1f77047874dae53231805117878c25ec240bb43.tar.gz
linhes_pkgbuild-d1f77047874dae53231805117878c25ec240bb43.tar.bz2
python-netifaces: update/bump
Diffstat (limited to 'abs/core/python-netifaces/PKGBUILD')
-rw-r--r--abs/core/python-netifaces/PKGBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/abs/core/python-netifaces/PKGBUILD b/abs/core/python-netifaces/PKGBUILD
index 13a424e..8f89bab 100644
--- a/abs/core/python-netifaces/PKGBUILD
+++ b/abs/core/python-netifaces/PKGBUILD
@@ -1,17 +1,24 @@
+#Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
+#Contributor: Gergely Imreh <imrehg(at)gmail(dot)com>
pkgname=python-netifaces
-__pkgname="netifaces"
+_orig_name=netifaces
pkgver=0.5
-pkgrel=2
-pkgdesc="Python modules for network interfaces"
-arch=(i686 x86_64)
-license=('LGPL' 'MPL')
-depends=('python')
-makedepends=('setuptools' )
-source=(http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz)
+pkgrel=1
+pkgdesc="Portable module to access network interface information in Python."
+depends=('python2')
+makedepend=('gcc')
+arch=('i686' 'x86_64')
url="http://alastairs-place.net/netifaces/"
-
+license=('MIT')
+provides=('netifaces' 'python-netifaces')
+source=("http://alastairs-place.net/2007/03/netifaces/${_orig_name}-${pkgver}.tar.gz")
build() {
- cd "${srcdir}/${__pkgname}-${pkgver}"
- chmod -x -R netifaces.egg-info
- yes "" | python setup.py install --root=$startdir/pkg --prefix=/usr
+ cd "${srcdir}/${_orig_name}-${pkgver}"
+ python2 setup.py install --root "${pkgdir}" || return 1
+
+ # Install license, that is inside the readme file
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 README "${pkgdir}/usr/share/licenses/${pkgname}/README" || return 1
}
+md5sums=('ea662a4b4c7db5d1631cc33bf68eb030')
+