updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / openbox-git / PKGBUILD
blobed74cbae80f2be3f6abefff927737fdf77dd99d1
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Lauri Jäntti <janttilauri at gmail.com>
4 pkgname=openbox-git
5 pkgver=20110710
6 pkgrel=1
7 pkgdesc="A window manager for the X11 windowing system"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr' \
11          'libxcursor' 'pango')
12 optdepends=('pyxdg: for the xdg-autostart script')
13 makedepends=('git' 'docbook-to-man')
14 url="http://icculus.org/openbox"
15 install=openbox.install
16 options=('!libtool')
17 backup=('usr/etc/xdg/openbox/menu.xml' 'usr/etc/xdg/openbox/rc.xml')
18 conflicts=('openbox')
19 provides=('openbox')
20 source=()
21 md5sums=()
23 _gitroot="git://git.icculus.org/dana/openbox.git"
24 _gitname=openbox
26 build() {
27   cd ${srcdir}
28   msg "Connecting to GIT server...."
30   if [ -d "$srcdir/$_gitname" ] ; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   if [[ -d $_ditname-build ]];then
41           rm -r "$srcdir/$_gitname-build"
42   fi
43   cp -fr "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44   cd "$srcdir/$_gitname-build"
46   ./bootstrap  
47   ./configure --prefix=/usr \
48     --with-x \
49     --enable-startup-notification \
50     --sysconfdir=/etc
51   make || return 1
52   make DESTDIR=${pkgdir} install
53   sed -i "s:startkde:/opt/kde/bin/\0:" ${pkgdir}/usr/share/xsessions/openbox-kde.desktop
54   sed -i "s:=gnome-session:=/usr/bin/gnome-session:" ${pkgdir}/usr/share/xsessions/openbox-gnome.desktop