updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / kbproto-git / PKGBUILD
blob6dddbab42c1aa6e3bf2b8d6b3dc6a52d7f51c88c
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s kbproto
4 pkgname=kbproto-git
5 pkgver=20101207
6 pkgrel=1
7 pkgdesc="X11 XKB extension wire protocol (Git version)"
8 arch=(any)
9 url="http://xorg.freedesktop.org/"
10 license=('custom')
11 makedepends=('git')
12 provides=('kbproto=1.0.5')
13 conflicts=('kbproto')
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 ${_gitroot}
26   fi
28   msg "GIT checkout done or server timeout"
30   msg "Creating build directory"
31   [ -d ${_gitname}-build ] && rm -rf ${_gitname}-build
32   cp -R ${_gitname} ${_gitname}-build
34   msg "Starting make..."
35   cd ${_gitname-build}
36   ./autogen.sh --prefix=/usr --disable-specs
37   make
40 package(){
41   cd ${_gitname-build}
42   make DESTDIR="${pkgdir}" install
43   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname/-*}/COPYING"