updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / resourceproto-git / PKGBUILD
blob61a4eb782a168b47a66bd0a287ec0be2e133ed36
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s resourceproto
4 pkgname=resourceproto-git
5 pkgver=20120119
6 pkgrel=1
7 pkgdesc="X11 Resource extension wire protocol - Git version"
8 arch=('any')
9 url="http://xorg.freedesktop.org/"
10 license=('custom')
11 makedepends=('git')
12 provides=('resourceproto=99')
13 conflicts=('resourceproto')
15 _gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname/-*}
16 _gitname=${pkgname/-*}
18 build() {
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."
24   else
25      git clone --depth 1 $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
31   cd $_gitname
32   ./autogen.sh --prefix=/usr
33   make
36 package(){
37   cd $_gitname
38   make DESTDIR="$pkgdir" install
39   install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname/-*}/COPYING"