1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s compositeproto
4 pkgname=compositeproto-git
7 pkgdesc="X11 Composite extension wire protocol - Git version"
9 url="http://xorg.freedesktop.org/"
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/-*}
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."
26 git clone --depth 1 $_gitroot
29 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 ./autogen.sh --prefix=/usr
39 make DESTDIR="$pkgdir" install
40 install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname/-*}/COPYING"