updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / xcb-proto-git / PKGBUILD
blob4c20b24fa66da11be4d09807a47272ee4141f742
1 # Maintainer: Andreas B. Wagner <AndreasBWagner@gmail.com>
2 # Contributor: Matt Parnell/ilikenwf <parwok@gmail.com>
4 pkgname=xcb-proto-git
5 pkgver=20100915
6 pkgrel=2
8 pkgdesc="XML-XCB protocol descriptions"
9 arch=(any)
10 url="http://xcb.freedesktop.org/"
11 license=('custom')
12 makedepends=('python' 'libxml2')
13 provides=(xcb-proto=${pkgver})
14 conflicts=('xcb-proto')
16 _gitroot="git://git.freedesktop.org/git/xcb/proto"
17 _gitname="proto"
19 build() {
21  msg "Connecting to git.freedesktop.org GIT server...."
23   if [ -d $startdir/src/$_gitname ] ; then
24   cd $_gitname && git pull origin
25   msg "The local files are updated."
26   else
27   git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cd $startdir/src/$_gitname
35   export PYTHONPATH="/usr/lib/python2.5/site-packages"
37   sh autogen.sh --prefix=/usr || return 1
38   make || return 1
39   make DESTDIR=${pkgdir} install || return 1
40   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
41   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
43 md5sums=()