summaryrefslogtreecommitdiffstats
path: root/testing/py-netifaces/APKBUILD
blob: 332c9196a8b1e0c51a716f7e3191d53c381b2743 (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
# 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"