[arch-commits] Commit in python-netifaces/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Fri Sep 25 05:42:10 UTC 2020


    Date: Friday, September 25, 2020 @ 05:42:10
  Author: eschwartz
Revision: 711964

python-netifaces: drop python2

no longer used by calibre, and is therefore not needed at all

Modified:
  python-netifaces/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 05:35:37 UTC (rev 711963)
+++ PKGBUILD	2020-09-25 05:42:10 UTC (rev 711964)
@@ -2,8 +2,7 @@
 # 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)
+pkgname=python-netifaces
 pkgver=0.10.9
 pkgrel=3
 pkgdesc="Portable module to access network interface information in Python"
@@ -10,30 +9,16 @@
 arch=('x86_64')
 url="https://alastairs-place.net/netifaces/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://pypi.io/packages/source/n/netifaces/netifaces-${pkgver}.tar.gz")
 sha512sums=('8fc593de4d2cbda46a3e2430ede031360f1abfc64d47d00fbec09f3395fd83479bf29d97cb6834b1df06850c9ac2745c9344b6814f34be5975d4d5df98e05e87')
 
-prepare() {
-  cp -a "${srcdir}/netifaces-${pkgver}"{,-py2}
-}
+package() {
+  cd "${srcdir}/netifaces-${pkgver}"
 
-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