updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / herbstluftwm-git / PKGBUILD
blob9bb455d13669603ca71424c6d6594a9fc9c407cc
1 # Contributor: thorsten w. <p@thorsten-wissmann.de>
2 pkgname=herbstluftwm-git
3 pkgver=20111101
4 pkgrel=1
5 pkgdesc="Manual tiling window manager for X"
6 arch=('i686' 'x86_64')
7 url="http://wwwcip.cs.fau.de/~re06huxa/herbstluftwm"
8 license=('BSD')
9 depends=( 'glib2>=2.24' libx11 )
10 optdepends=(
11         'bash: needed by most scripts'
12         'dmenu: needed by some scripts'
13         'dzen2-svn: needed by panel.sh'
14         'dzen2-xft-xpm-xinerama-svn: view icons as tags'
15     )
16 makedepends=( git asciidoc )
17 provides=( )
18 backup=( )
19 source=( )
20 md5sums=( )
21 _gitroot="git://git.informatik.uni-erlangen.de/re06huxa/herbstluftwm"
22 _gitname="herbstluftwm"
24 build() {
25   cd $srcdir
26   echo "Fetching source from GIT"
27   if ! [ -d "$_gitname" ] ; then
28     # if git dir does not exist yet
29     # then clone git repo
30     git clone "$_gitroot" || return 1
31     cd "$_gitname"
32   else
33     # else pull sources
34     cd "$_gitname" && git pull origin || return 1
35   fi
36   # compile
37   make VERSION_SUFFIX="-git" || return 1
38   make VERSION_SUFFIX="-git" \
39        INSTALLDIR="$pkgdir" install || return 1