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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:29:30 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:29:30
  Author: foutrelis
Revision: 348995

archrelease: copy trunk to community-staging-x86_64

Added:
  python-netifaces/repos/community-staging-x86_64/
  python-netifaces/repos/community-staging-x86_64/PKGBUILD
    (from rev 348994, python-netifaces/trunk/PKGBUILD)

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

Copied: python-netifaces/repos/community-staging-x86_64/PKGBUILD (from rev 348994, python-netifaces/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 18:29:30 UTC (rev 348995)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Gergely Imreh <imrehg(at)gmail(dot)com>
+# Contributor: Ghost of Kendo <ghostofkendo at gmail dot com>
+
+pkgbase=python-netifaces
+pkgname=(python-netifaces python2-netifaces)
+pkgver=0.10.7
+pkgrel=2
+pkgdesc="Portable module to access network interface information in Python"
+arch=('x86_64')
+url="http://alastairs-place.net/netifaces/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/n/netifaces/netifaces-${pkgver}.tar.gz")
+sha512sums=('d97433345a29ae540e40d5fe9e50c10e8b30197bb0b798f55c82236f20dc6f463604ed202b361cdfcb5e0c95998c87acc781a808c0198ec0479089e13a7fdbed')
+
+prepare() {
+  cp -a "${srcdir}/netifaces-${pkgver}"{,-py2}
+}
+
+package_python-netifaces() {
+  depends=('python')
+
+  cd "${srcdir}/netifaces-${pkgver}"
+  python setup.py install --root "${pkgdir}"
+
+  # Install license, that is inside the readme file
+  install -Dm644 README.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-netifaces() {
+  depends=('python2')
+
+  cd "${srcdir}/netifaces-${pkgver}-py2"
+  python2 setup.py install --root "${pkgdir}"
+
+  # Install license, that is inside the readme file
+  install -Dm644 README.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list