aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-netifaces
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-12-03 10:19:20 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-12-13 08:46:27 +0000
commit5d1967b078293c495fd5afdb2c2b983b458f7f0d (patch)
tree819765725b398a55511dfcaaa6553b55ce6b3a4b /testing/py-netifaces
parente3c130be7664862a5534138fe2477b536a33dc5b (diff)
downloadaports-5d1967b078293c495fd5afdb2c2b983b458f7f0d.tar.bz2
aports-5d1967b078293c495fd5afdb2c2b983b458f7f0d.tar.xz
testing/py-netifaces: new aport
Diffstat (limited to 'testing/py-netifaces')
-rw-r--r--testing/py-netifaces/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-netifaces/APKBUILD b/testing/py-netifaces/APKBUILD
new file mode 100644
index 0000000000..332c9196a8
--- /dev/null
+++ b/testing/py-netifaces/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=py-netifaces
+_pkgname=netifaces
+pkgver=0.6
+pkgrel=0
+pkgdesc="Portable module to access network interface information in Python"
+url="http://alastairs-place.net/netifaces/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev="python-dev py-setuptools"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://alastairs-place.net/projects/$_pkgname/$_pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py install --root "${pkgdir}"
+}
+
+package() {
+ cd "$_builddir"
+ install -Dm644 README "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums="6ea1e045ebd5db99dd675178e41307e5 netifaces-0.6.tar.gz"