updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / xmonad-log-applet-gnome-git / PKGBUILD
blobb0e1b95a08f352cc023a0ca93ba345247a993d97
1 pkgname=xmonad-log-applet-gnome-git
2 pkgver=20120117
3 pkgrel=1
4 pkgdesc="An applet that will display Xmonad log information (GNOME3)"
5 arch=('i686' 'x86_64')
6 url="https://github.com/alexkay/xmonad-log-applet"
7 license=('BSD3')
8 depends=('gnome-panel>=3.0.0')
9 makedepends=('git' 'make' 'gnome-panel>=3.0.0')
11 _gitroot="git://github.com/alexkay/xmonad-log-applet.git"
12 _gitname="xmonad-log-applet"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   ./autogen.sh --with-panel=gnome3
33   make || return 1
34   make DESTDIR=$pkgdir install
36   rm -rf "$srcdir/$_gitname-build"
37