1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Lauri Jäntti <janttilauri at gmail.com>
7 pkgdesc="A window manager for the X11 windowing system"
10 depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr' \
12 optdepends=('pyxdg: for the xdg-autostart script')
13 makedepends=('git' 'docbook-to-man')
14 url="http://icculus.org/openbox"
15 install=openbox.install
17 backup=('usr/etc/xdg/openbox/menu.xml' 'usr/etc/xdg/openbox/rc.xml')
23 _gitroot="git://git.icculus.org/dana/openbox.git"
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."
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 if [[ -d $_ditname-build ]];then
41 rm -r "$srcdir/$_gitname-build"
43 cp -fr "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
47 ./configure --prefix=/usr \
49 --enable-startup-notification \
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