[arch-commits] Commit in python-xlib/repos/community-any (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Wed Dec 20 19:55:29 UTC 2017


    Date: Wednesday, December 20, 2017 @ 19:55:28
  Author: foxboron
Revision: 275069

archrelease: copy trunk to community-any

Added:
  python-xlib/repos/community-any/PKGBUILD
    (from rev 275068, python-xlib/trunk/PKGBUILD)
Deleted:
  python-xlib/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 44 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-20 19:55:13 UTC (rev 275068)
+++ PKGBUILD	2017-12-20 19:55:28 UTC (rev 275069)
@@ -1,30 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Pappa < jcberg @ gmail . com >
-
-pkgname=('python-xlib' 'python2-xlib')
-pkgbase=python-xlib
-pkgver=0.20
-pkgrel=1
-pkgdesc="A fully functional X client library for Python programs"
-url="https://github.com/python-xlib/python-xlib"
-arch=('any')
-license=('GPL')
-makedepends=('python2-setuptools' 'python-setuptools')
-source=("https://github.com/python-xlib/python-xlib/releases/download/$pkgver/python-xlib-$pkgver.tar.bz2")
-sha256sums=('6c61c6424d7861fe50279e5ff574481f4a9a0ea9c79eb0191aa5f5b3d4471c30')
-
-package_python2-xlib() {
-  depends=('python2' 'python2-six')
-
-  cd "$srcdir"/python-xlib-$pkgver
-  python2 setup.py install --root="$pkgdir"
-}
-
-package_python-xlib() {
-  depends=('python' 'python-six')
-
-  cd "$srcdir"/python-xlib-$pkgver
-  python setup.py install --root="$pkgdir"
-}

Copied: python-xlib/repos/community-any/PKGBUILD (from rev 275068, python-xlib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-12-20 19:55:28 UTC (rev 275069)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Pappa <jcberg at gmail.com >
+
+pkgbase=python-xlib
+pkgname=('python-xlib' 'python2-xlib')
+pkgver=0.21
+pkgrel=1
+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'
+             'python' 'python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-xlib/python-xlib/archive/$pkgver.tar.gz")
+sha256sums=('14bc4eb406f5dc071410520751ddd239fb19499bafeefb31abc9be367ec47741')
+
+prepare() {
+  cp -a python-xlib-$pkgver{,-py2}
+}
+
+build(){
+  cd "$srcdir/python-xlib-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/python-xlib-$pkgver-py2"
+  python2 setup.py build
+}
+
+package_python2-xlib() {
+  depends=('python2' 'python2-six')
+
+  cd "python-xlib-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python-xlib() {
+  depends=('python' 'python-six')
+
+  cd "python-xlib-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list