updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / xproto-git / PKGBUILD
blob79ec567d7a340e485956bdba3140965fe992ae4b
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Contributor: Matt Parnell/ilikenwf <parwok@gmail.com>
3 # Based on [extra]'s xproto
5 _pkgname=xproto
6 pkgname=$_pkgname-git
7 pkgver=20120124
8 pkgrel=1
9 pkgdesc="X11 core wire protocol and auxiliary headers - Git version"
10 arch=('any')
11 license=('custom')
12 url="http://cgit.freedesktop.org/xorg/proto/$_pkgname/"
13 makedepends=('git')
14 provides=("$_pkgname=99")
15 conflicts=("$_pkgname")
17 _gitroot=git://anongit.freedesktop.org/xorg/proto/$_pkgname
18 _gitname=$_pkgname
20 build() {
21   msg "Connecting to anongit.freedesktop.org GIT server...."
23   if [ -d $_gitname ] ; then
24      cd $_gitname && git pull origin && cd ..
25      msg "The local files are updated."
26   else
27      git clone --depth 1 $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
33   cd $_gitname
34   ./autogen.sh --prefix=/usr
35   make
38 package(){
39   cd $_gitname
40   make DESTDIR="$pkgdir" install
41   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"