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

Morten Linderud foxboron at archlinux.org
Sun Dec 22 13:52:27 UTC 2019


    Date: Sunday, December 22, 2019 @ 13:52:27
  Author: foxboron
Revision: 538843

upgpkg: python-xlib 0.26-2

Removed python2

Modified:
  python-xlib/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++-----------------
 1 file changed, 6 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-22 13:49:44 UTC (rev 538842)
+++ PKGBUILD	2019-12-22 13:52:27 UTC (rev 538843)
@@ -3,35 +3,24 @@
 # Contributor: Jeff Mickey <jeff at archlinux.org>
 # Contributor: Pappa <jcberg at gmail.com >
 
-pkgbase=python-xlib
-pkgname=('python-xlib' 'python2-xlib')
+pkgname=python-xlib
 pkgver=0.26
-pkgrel=1
+pkgrel=2
 pkgdesc="A fully functional X client library for Python programs"
 url="https://github.com/python-xlib/python-xlib"
 arch=('any')
 license=('LGPL')
-makedepends=('python2' 'python2-setuptools-scm'
-             'python' 'python-setuptools-scm')
+depends=('python-six')
+makedepends=('python-setuptools-scm')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/python-xlib/python-xlib/archive/$pkgver.tar.gz")
 sha256sums=('26dff6bc4e9e0d1c175a96e9c1d672b18cc0e4ec900c17cad409ce5a628b3dd1')
 
 build(){
-  cd "$srcdir/python-xlib-$pkgver"
+  cd "$pkgname-$pkgver"
   python setup.py build
-  python2 setup.py build
 }
 
-package_python2-xlib() {
-  depends=('python2' 'python2-six')
-
-  cd "python-xlib-$pkgver"
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
 package_python-xlib() {
-  depends=('python' 'python-six')
-
-  cd "python-xlib-$pkgver"
+  cd "$pkgname-$pkgver"
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }



More information about the arch-commits mailing list