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

Felix Yan felixonmars at archlinux.org
Tue Jul 21 04:49:33 UTC 2020


    Date: Tuesday, July 21, 2020 @ 04:49:33
  Author: felixonmars
Revision: 664677

archrelease: copy trunk to community-staging-any

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

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

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



More information about the arch-commits mailing list