summaryrefslogtreecommitdiffstats
path: root/testing/py-netifaces/APKBUILD
blob: 1486d054fb20a355a5023c7986cda260a9572c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-netifaces
_pkgname=netifaces
pkgver=0.8
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=""
makedepends="python-dev py-setuptools"
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 build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -Dm644 README "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

md5sums="e57e5983f4c286fac5f8068fbfc5c873  netifaces-0.8.tar.gz"
sha256sums="53a711038db3d6e5cf7129d6f751185fd052f830f12f271fbfe17bd2671ab1ec  netifaces-0.8.tar.gz"
sha512sums="b3735c4f83d4ed1d52f59937187659f148205a721fd05ce5a10e9ec89ea3519971001b2985e24bb30fb112ee741310babd847f84d4c3fbb34989edc6a743f551  netifaces-0.8.tar.gz"