[arch-commits] Commit in python-ifaddr/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Sep 16 19:24:40 UTC 2018
Date: Sunday, September 16, 2018 @ 19:24:40
Author: jelle
Revision: 382224
archrelease: copy trunk to community-any
Added:
python-ifaddr/repos/community-any/
python-ifaddr/repos/community-any/PKGBUILD
(from rev 382223, python-ifaddr/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-ifaddr/repos/community-any/PKGBUILD (from rev 382223, python-ifaddr/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-09-16 19:24:40 UTC (rev 382224)
@@ -0,0 +1,33 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_name=ifaddr
+pkgname=python-ifaddr
+pkgver=0.1.4
+pkgrel=1
+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://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip)
+sha512sums=('5b080d8f328f7a974644e15929850ba93b9232cee545740d89e4d63e982e351287504befef365834bfb3f4c5f25dc99f4a4d76753405658ae197590e2ce94929')
+
+build() {
+ cd "${_name}-${pkgver}"
+ python3 setup.py build
+}
+
+package() {
+ cd "${_name}-${pkgver}"
+
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+}
+
+check() {
+ cd "${_name}-${pkgver}"
+ nosetests ${_name}/test_ifaddr.py
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list