aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ifaddr/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-ifaddr/APKBUILD')
-rw-r--r--community/py3-ifaddr/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/py3-ifaddr/APKBUILD b/community/py3-ifaddr/APKBUILD
new file mode 100644
index 0000000000..e7069a0655
--- /dev/null
+++ b/community/py3-ifaddr/APKBUILD
@@ -0,0 +1,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"