[arch-commits] Commit in python-xcffib/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Jan 1 07:41:04 UTC 2020


    Date: Wednesday, January 1, 2020 @ 07:41:03
  Author: felixonmars
Revision: 545742

archrelease: copy trunk to community-staging-any

Added:
  python-xcffib/repos/community-staging-any/
  python-xcffib/repos/community-staging-any/PKGBUILD
    (from rev 545741, python-xcffib/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-xcffib/repos/community-staging-any/PKGBUILD (from rev 545741, python-xcffib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-01-01 07:41:03 UTC (rev 545742)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Roger Duran <rogerduran at gmail.com>
+
+pkgbase=python-xcffib
+pkgname=(python-xcffib python2-xcffib)
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
+arch=('any')
+url="https://pypi.python.org/pypi/xcffib"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'python-six'
+             'python2-six' 'libxcb' 'haskell-xcffib')
+checkdepends=('python-nose' 'python2-nose' 'xorg-server-xvfb' 'xorg-xeyes')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tych0/xcffib/archive/v$pkgver.tar.gz")
+sha512sums=('1299ff124d5ecb91c9551fb583741901f0635d9b3685da0436a14ebfdfdcc5bdec558a457400a27a22ffe2b99649250b3ef74223f27f8ac3a267a69314b509fb')
+
+prepare() {
+  cp -a xcffib-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/xcffib-$pkgver
+  make xcffib GEN=xcffibgen CABAL=true
+  python setup.py build
+
+  cd "$srcdir"/xcffib-$pkgver-py2
+  make xcffib GEN=xcffibgen CABAL=true
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/xcffib-$pkgver
+  xvfb-run nosetests3
+
+  cd "$srcdir"/xcffib-$pkgver-py2
+  xvfb-run nosetests2
+}
+
+package_python-xcffib() {
+  depends=('python-six' 'python-cffi' 'libxcb')
+
+  cd xcffib-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-xcffib() {
+  depends=('python2-six' 'python2-cffi' 'libxcb')
+
+  cd xcffib-$pkgver-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list