[arch-commits] Commit in python-xlib/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 19:57:10 UTC 2019
Date: Friday, October 25, 2019 @ 19:57:09
Author: foutrelis
Revision: 519642
archrelease: copy trunk to community-staging-any
Added:
python-xlib/repos/community-staging-any/
python-xlib/repos/community-staging-any/PKGBUILD
(from rev 519640, python-xlib/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-xlib/repos/community-staging-any/PKGBUILD (from rev 519640, python-xlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 19:57:09 UTC (rev 519642)
@@ -0,0 +1,43 @@
+# 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.25
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-xlib/python-xlib/archive/$pkgver.tar.gz")
+sha256sums=('376498149e0ecc70a11b33882da68fc587b2f422a2b1fe0d9169fda8b566d14d')
+
+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