updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / xpyb-git / PKGBUILD
blobfe976dfee4df14de225f8c182b59f1acf193f325
1 # Maintainer: roger <roger@rogerpc.com.ar>
3 pkgname=xpyb-git
4 pkgver=20110224
5 pkgrel=1
6 pkgdesc="XCB-based Python bindings for the X Window System (xpyb-ng fork, backwards-compatible)"
7 url="http://xcb.freedesktop.org/"
8 license=('X11')
9 arch=(i686 x86_64)
10 depends=(python2 xcb-proto "libxcb>=1.7")
11 makedepends=(gcc git python2)
12 provides=(xpyb=1.3)
13 conflicts=(xpyb)
14 source=(xpyb.pc)
15 md5sums=('7b743feec4d6b4e715dbca2f2d1da35f')
16 _gitroot="https://github.com/dequis"
17 _gitname="xpyb-ng"
19 build() 
21   if [ -d "${srcdir}/$_gitname" ]; then
22     cd "${srcdir}/$_gitname"
23     git pull
24   else
25     cd $srcdir
26     git clone "$_gitroot/$_gitname.git"
27   fi
28   cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
30   cd "${srcdir}/$_gitname-build"
31   python2 setup.py build
34 package(){
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"