1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Lauri Jäntti <janttilauri at gmail.com>
4 pkgname=openbox-multihead-git
7 pkgdesc="A window manager for the X11 windowing system with multihead support"
10 depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr' \
11 'libxcursor' 'pango' 'imlib2')
12 optdepends=('pyxdg: for the xdg-autostart script' 'xpybutil: for ob-visible-desks')
13 makedepends=('git' 'docbook-to-man')
14 url="https://github.com/BurntSushi/openbox-multihead/blob/multihead/README.MULTIHEAD"
15 install=openbox.install
17 backup=('usr/etc/xdg/openbox/menu.xml' 'usr/etc/xdg/openbox/rc.xml')
18 conflicts=('openbox' 'openbox-git')
19 provides=('openbox' 'openbox-git')
23 _gitroot="git://github.com/BurntSushi/openbox-multihead.git"
24 _gitname=openbox-multihead
25 _gitbranch="multihead"
29 msg "Connecting to GIT server...."
31 if [ -d $_gitname ]; then
32 cd $_gitname && git pull origin
33 msg "The local files are updated."
38 msg "GIT checkout done or server timeout"
39 msg "Starting make..."
41 if [ -d "$_gitname-build" ]; then
42 rm -r "$srcdir/$_gitname-build"
44 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
45 cd "$srcdir/$_gitname-build"
47 msg "Clone finished, checking out branch $_gitbranch"
48 git checkout $_gitbranch
50 sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
51 data/autostart/openbox-xdg-autostart
54 ./configure --prefix=/usr \
56 --enable-startup-notification \
59 make DESTDIR=${pkgdir} install
60 sed -i "s:startkde:/opt/kde/bin/\0:" ${pkgdir}/usr/share/xsessions/openbox-kde.desktop
61 sed -i "s:=gnome-session:=/usr/bin/gnome-session:" ${pkgdir}/usr/share/xsessions/openbox-gnome.desktop
62 install -Dm755 tools/ob-visible-desks "$pkgdir/usr/bin/ob-visible-desks"