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

Evangelos Foutras foutrelis at archlinux.org
Thu Dec 10 18:12:05 UTC 2015


    Date: Thursday, December 10, 2015 @ 19:12:05
  Author: foutrelis
Revision: 152514

archrelease: copy trunk to community-staging-any

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

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

Copied: python-xcffib/repos/community-staging-any/PKGBUILD (from rev 152513, python-xcffib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-12-10 18:12:05 UTC (rev 152514)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Roger Duran <rogerduran at gmail.com>
+
+pkgbase=python-xcffib
+pkgname=(python-xcffib python2-xcffib)
+pkgver=0.4.0
+pkgrel=2
+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' 'git' 'ghc' 'haskell-xcb-types'
+             'haskell-language-python' 'haskell-filemanip' 'haskell-split'
+             'haskell-mtl' 'haskell-attoparsec' 'haskell-hunit' 'cabal-install'
+             'haskell-test-framework' 'haskell-test-framework-hunit'
+             'haskell-optparse-applicative')
+checkdepends=('flake8' 'python2-flake8' 'parallel' 'python-nose' 'python2-nose'
+              'xorg-server-xvfb' 'xorg-xeyes')
+source=("git+https://github.com/tych0/xcffib.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a xcffib{,-py2}
+
+  sed -e 's/python /python2 /' \
+      -e 's/nosetests /nosetests2 /' \
+      -e 's/flake8 /flake8-python2 /' \
+      -i xcffib-py2/Makefile
+}
+
+build() {
+  cd "$srcdir/xcffib"
+  make xcffib
+
+  cd "$srcdir/xcffib-py2"
+  make xcffib
+}
+
+check() {
+  cd "$srcdir/xcffib"
+  make check
+
+  cd "$srcdir/xcffib-py2"
+  make check
+}
+
+package_python-xcffib() {
+  depends=('python-six' 'python-cffi' 'libxcb')
+
+  cd "$srcdir/xcffib"
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-xcffib() {
+  depends=('python2-six' 'python2-cffi' 'libxcb')
+
+  cd "$srcdir/xcffib-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list