[arch-commits] Commit in python-xlib/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 18:08:49 UTC 2018
Date: Saturday, June 30, 2018 @ 18:08:49
Author: felixonmars
Revision: 348874
archrelease: copy trunk to community-staging-any
Added:
python-xlib/repos/community-staging-any/
python-xlib/repos/community-staging-any/PKGBUILD
(from rev 348873, python-xlib/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-xlib/repos/community-staging-any/PKGBUILD (from rev 348873, python-xlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:08:49 UTC (rev 348874)
@@ -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.23
+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'
+ 'python' 'python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-xlib/python-xlib/archive/$pkgver.tar.gz")
+sha256sums=('a345fad5003adf6d06c296a6fb917b6b7cc21f17135f11418bf603e15bbde118')
+
+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