updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / bigreqsproto-git / PKGBUILD
blob03bfd62bc563c44b288a01eb5cac743dd187becd
1 # Maintainer: Det <nimetonmaili gmail a-dot com>
2 # Based on [extra]'s bigreqsproto
4 _pkgname=bigreqsproto
5 pkgname=$_pkgname-git
6 pkgver=20120124
7 pkgrel=1
8 pkgdesc="X11 Big Requests extension wire protocol - Git version"
9 arch=('any')
10 url="http://cgit.freedesktop.org/xorg/proto/$_pkgname/"
11 license=('custom')
12 makedepends=('xorg-util-macros' 'git')
13 provides=("$_pkgname=99")
14 conflicts=("$_pkgname")
16 _gitroot=git://anongit.freedesktop.org/xorg/proto/$_pkgname
17 _gitname=$_pkgname
19 build() {
20   msg "Connecting to anongit.freedesktop.org GIT server...."
22   if [ -d $_gitname ] ; then
23      cd $_gitname && git pull origin && cd ..
24      msg "The local files are updated."
25   else
26      git clone --depth 1 $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
32   cd $_gitname
33   ./autogen.sh --prefix=/usr
34   make
37 package(){
38   cd $_gitname
39   make DESTDIR="$pkgdir" install
40   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"