aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ifaddr/APKBUILD
blob: e7069a06556f68c190505c3bae53b06f13ffba19 (plain) (blame)
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
# Contributor: David Florness <david@florness.com>
# Maintainer: David Florness <david@florness.com>
pkgname=py3-ifaddr
pkgver=0.1.7
pkgrel=0
pkgdesc="Enumerates all IP addresses on all network adapters of the system"
url="https://github.com/pydron/ifaddr"
arch="noarch"
license="MIT"
options="!check"
depends="python3"
makedepends="py3-setuptools"
source="https://github.com/pydron/ifaddr/archive/$pkgver/ifaddr-$pkgver.tar.gz"
builddir="$srcdir/ifaddr-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
}

sha512sums="648d05c1aa91b81bfbda81c9753c3f35c7f451e9842eef9b46545db7817e4fdbe9b8f8f30f552cdef9522998960d7b07a4465dd49733fd784702f48aa875238d  ifaddr-0.1.7.tar.gz"