updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / fluxbox-gediminas-git / PKGBUILD
blob210ee527ea32ae0edb7510ffc6fe000ccdb41766
1 # $Id$
2 # Maintainer: Alfonso Saavedra "Son Link" sonlink.dourden@gmail.com
4 pkgname=fluxbox-gediminas-git
5 pkgver=20110923
6 pkgrel=1
7 pkgdesc="A lightweight and highly-configurable window manager. Branch with composite options"
8 arch=('i686' 'x86_64')
9 url="http://www.fluxbox.org"
10 license=('MIT')
11 depends=('libxft' 'libxpm' 'libxinerama' 'libxrandr' 'gcc-libs' 'sh' 'imlib2' 'fribidi')
12 conflicts=('fluxbox')
13 makedepends=('pkg-config' 'git')
14 optdepends=('xorg-xmessage: for using the fbsetbg and fluxbox-generate_menu utilities')
15 options=('!makeflags')
16 source=(fluxbox.desktop)
17 md5sums=('eeae9c88a2526ac0bd8afcd9ce97f9ed')
19 _gitroot="git://git.fluxbox.org/fluxbox_gediminas.git"
20 _gitname="fluxbox_gediminas"
21 build() {
22   msg "Connecting to GIT server...."
24  if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
30   
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
33    cd "$srcdir/$_gitname"
34   ./autogen.sh
35   ./configure --prefix=/usr \
36     --enable-gnome --enable-xft --enable-xinerama \
37     --enable-imlib2 --enable-nls
38   make
41 package() {
42   cd "${srcdir}/${_gitname}"
43   make DESTDIR="${pkgdir}" install
44   install -D -m644 ../fluxbox.desktop "${pkgdir}/usr/share/xsessions/fluxbox.desktop"
45   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"