updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / xbindkeys-git / PKGBUILD
blob287416cd9343bffad3cde84aa133045622e71f6a
1 # Maintainer: Brian Mock <mock.brian@gmail.com>
2 pkgname=xbindkeys-git
3 pkgver=20101205
4 pkgrel=1
5 pkgdesc="Launch shell commands with your keyboard or your mouse under X"
6 arch=('i686' 'x86_64')
7 url="http://www.nongnu.org/xbindkeys/xbindkeys.html"
8 license=('GPL')
9 depends=('libx11' 'guile>=1.8.1' 'tk')
10 makedepends=('git')
11 conflicts=('xbindkeys')
12 provides=('xbindkeys')
14 _gitroot="git://git.savannah.nongnu.org/xbindkeys.git/"
15 _gitname="xbindkeys"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
39   ./autogen.sh
40   ./configure --prefix=/usr
41   make
44 package() {
45   cd "$srcdir/$_gitname-build"
46   make DESTDIR="$pkgdir/" install
47