1 # Maintainer: roger <roger@rogerpc.com.ar>
6 pkgdesc="XCB-based Python bindings for the X Window System (xpyb-ng fork, backwards-compatible)"
7 url="http://xcb.freedesktop.org/"
10 depends=(python2 xcb-proto "libxcb>=1.7")
11 makedepends=(gcc git python2)
15 md5sums=('7b743feec4d6b4e715dbca2f2d1da35f')
16 _gitroot="https://github.com/dequis"
21 if [ -d "${srcdir}/$_gitname" ]; then
22 cd "${srcdir}/$_gitname"
26 git clone "$_gitroot/$_gitname.git"
28 cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
30 cd "${srcdir}/$_gitname-build"
31 python2 setup.py build
35 cd "${srcdir}/${_gitname}-build"
36 python2 setup.py install --root=$pkgdir/ --optimize=1
38 # Fix to build pycairo-xcb until dx fixit in git
39 mkdir -p $pkgdir/usr/lib/pkgconfig/
40 mkdir -p $pkgdir/usr/include/
41 install ${srcdir}/xpyb.pc $pkgdir/usr/lib/pkgconfig/
42 install ${srcdir}/xpyb-ng/xcb/xpyb.h $pkgdir/usr/include/
43 rm -rf "${srcdir}/${_gitname}-build"