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

Jelle van der Waa jelle at archlinux.org
Sun Mar 18 15:55:21 UTC 2018


    Date: Sunday, March 18, 2018 @ 15:55:15
  Author: jelle
Revision: 309054

Fix FS#57877 only ship Python-zeroconf

python2 support is dead \o/

Modified:
  python-zeroconf/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-18 15:44:56 UTC (rev 309053)
+++ PKGBUILD	2018-03-18 15:55:15 UTC (rev 309054)
@@ -1,30 +1,27 @@
 # Maintainer: Jelle van der Waa <jelle at archlinux.org>
 # Contributor: Maxim Andersson <thesilentboatman at gmail.com>
 
-pkgbase=python-zeroconf
-pkgname=('python-zeroconf' 'python2-zeroconf')
+pkgname=python-zeroconf
 pkgver=0.20.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A pure python implementation of multicast DNS service discovery"
 arch=('any')
 url="https://github.com/jstasiak/python-zeroconf"
 license=('LGPL')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python' 'python-netifaces' 'python-six')
+makedepends=('python-setuptools')
 source=("https://github.com/jstasiak/${pkgname}/archive/${pkgver}.tar.gz")
 sha256sums=('5829f2e68ca6ab06d25e661a7640cf1d215bf4167d952f81086f1fbfb4ef9dbb')
 
-package_python-zeroconf() {
-  depends=('python' 'python-netifaces' 'python-six')
+build() {
   cd "${pkgbase}-${pkgver}"
-
-  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  python3 setup.py build
 }
 
-package_python2-zeroconf() {
-  depends=('python2' 'python2-netifaces' 'python2-six')
+package() {
   cd "${pkgbase}-${pkgver}"
 
-  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list