1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s renderproto
4 pkgname=renderproto-git
7 pkgdesc="X11 Render extension wire protocol - Git version"
9 url="http://xorg.freedesktop.org/"
12 provides=('renderproto=99')
13 conflicts=('renderproto')
15 _gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname/-*}
16 _gitname=${pkgname/-*}
19 msg "Connecting to git.freedesktop.org GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin && cd ..
23 msg "The local files are updated."
25 git clone --depth 1 $_gitroot
28 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 ./autogen.sh --prefix=/usr
38 make DESTDIR="$pkgdir" install
39 install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname/-*}/COPYING"