summaryrefslogtreecommitdiff
path: root/community/python2-netifaces
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/python2-netifaces
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/python2-netifaces')
-rw-r--r--community/python2-netifaces/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/python2-netifaces/PKGBUILD b/community/python2-netifaces/PKGBUILD
new file mode 100644
index 000000000..daad6408f
--- /dev/null
+++ b/community/python2-netifaces/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 83533 2013-02-02 14:19:06Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Gergely Imreh <imrehg(at)gmail(dot)com>
+# Contributor: Ghost of Kendo <ghostofkendo at gmail dot com>
+
+pkgname=python2-netifaces
+pkgver=0.8
+pkgrel=2
+pkgdesc="Portable module to access network interface information in Python"
+arch=('i686' 'x86_64')
+url="http://alastairs-place.net/netifaces/"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-distribute')
+source=("http://alastairs-place.net/projects/netifaces/netifaces-${pkgver}.tar.gz")
+md5sums=('e57e5983f4c286fac5f8068fbfc5c873')
+
+package() {
+ cd "${srcdir}/netifaces-${pkgver}"
+ python2 setup.py install --root "${pkgdir}"
+
+ # Install license, that is inside the readme file
+ install -Dm644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}