updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / resourceproto-git / PKGBUILD
blobe02cd2a3dab49edbc6213a2bb7369f8aed38c059
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s resourceproto
4 _pkgname=resourceproto
5 pkgname=$_pkgname-git
6 pkgver=20120124
7 pkgrel=1
8 pkgdesc="X11 Resource extension wire protocol - Git version"
9 arch=('any')
10 url="http://cgit.freedesktop.org/xorg/proto/$_pkgname/"
11 license=('custom')
12 makedepends=('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"