[arch-commits] Commit in python-xcffib/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Jan 23 08:25:25 UTC 2017


    Date: Monday, January 23, 2017 @ 08:25:24
  Author: felixonmars
Revision: 208483

upgpkg: python-xcffib 0.5.0-1

Modified:
  python-xcffib/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++----------------------
 1 file changed, 16 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-23 08:09:39 UTC (rev 208482)
+++ PKGBUILD	2017-01-23 08:25:24 UTC (rev 208483)
@@ -4,49 +4,43 @@
 
 pkgbase=python-xcffib
 pkgname=(python-xcffib python2-xcffib)
-pkgver=0.4.2
-pkgrel=2
+pkgver=0.5.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' 'git' 'ghc' 'haskell-xcb-types' 'haskell-language-python'
-             'haskell-filemanip' 'haskell-split' 'haskell-semigroups' '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"
-        optparse-applicative-0.13.patch)
-md5sums=('SKIP'
-         '606b45b06776eee76d3ee84a658952eb')
+             'python2-six' 'libxcb' 'git' 'haskell-xcffib')
+checkdepends=('python-nose' 'python2-nose' 'xorg-server-xvfb' 'xorg-xeyes')
+source=("git+https://github.com/tych0/xcffib.git#tag=v$pkgver")
+md5sums=('SKIP')
 
 prepare() {
-  (cd xcffib; patch -p1 -i ../optparse-applicative-0.13.patch)
+  # Somehow broken, we do it ourselves
+  sed -i '/ffi_build.py/d' xcffib/Makefile
 
   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
+  make xcffib GEN=xcffibgen CABAL=true
+  python xcffib/ffi_build.py
+  python setup.py build
 
   cd "$srcdir/xcffib-py2"
-  make xcffib
+  make xcffib GEN=xcffibgen CABAL=true
+  python2 xcffib/ffi_build.py
+  python2 setup.py build
 }
 
 check() {
   cd "$srcdir/xcffib"
-  make check
+  nosetests3
 
   cd "$srcdir/xcffib-py2"
-  make check
+  nosetests2
 }
 
 package_python-xcffib() {



More information about the arch-commits mailing list