[arch-commits] Commit in python-ifaddr/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:20:26 UTC 2020


    Date: Monday, November 9, 2020 @ 16:20:26
  Author: foutrelis
Revision: 747480

archrelease: copy trunk to community-staging-any

Added:
  python-ifaddr/repos/community-staging-any/
  python-ifaddr/repos/community-staging-any/PKGBUILD
    (from rev 747479, python-ifaddr/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-ifaddr/repos/community-staging-any/PKGBUILD (from rev 747479, python-ifaddr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:20:26 UTC (rev 747480)
@@ -0,0 +1,35 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_name=ifaddr
+pkgname=python-ifaddr
+pkgver=0.1.7
+pkgrel=2
+pkgdesc="Enumerates all IP addresses on all network adapters of the system"
+arch=('any')
+url="https://github.com/pydron/ifaddr"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=(https://github.com/pydron/ifaddr/archive/${pkgver}.tar.gz)
+sha512sums=('648d05c1aa91b81bfbda81c9753c3f35c7f451e9842eef9b46545db7817e4fdbe9b8f8f30f552cdef9522998960d7b07a4465dd49733fd784702f48aa875238d')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python3 setup.py build
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  nosetests ${_name}/test_ifaddr.py
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list