updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / compositeproto-git / PKGBUILD
blob686d65456e1338aaff47abe2a3eea922609b3967
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s compositeproto
4 pkgname=compositeproto-git
5 pkgver=20120119
6 pkgrel=1
7 pkgdesc="X11 Composite extension wire protocol - Git version"
8 arch=('any')
9 url="http://xorg.freedesktop.org/"
10 license=('custom')
11 depends=('fixesproto')
12 makedepends=('xorg-util-macros' 'git')
13 provides=('compositeproto=99')
14 conflicts=('compositeproto')
16 _gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname/-*}
17 _gitname=${pkgname/-*}
19 build() {
20   msg "Connecting to git.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"