diff options
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 53 | ||||
-rw-r--r-- | openbox.install | 11 |
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..772c315ab299 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = openbox-multihead-git + pkgdesc = A window manager for the X11 windowing system with multihead support + pkgver = 7460.4e7c884 + pkgrel = 1 + url = https://github.com/BurntSushi/openbox-multihead/blob/multihead/README.MULTIHEAD + install = openbox.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = docbook-to-man + depends = startup-notification + depends = libxml2 + depends = libxinerama + depends = libxrandr + depends = libxcursor + depends = pango + depends = imlib2 + optdepends = pyxdg: for the xdg-autostart script + optdepends = xpybutil: for ob-visible-desks + provides = openbox + provides = openbox-git + conflicts = openbox + conflicts = openbox-git + options = !libtool + backup = etc/xdg/openbox/menu.xml + backup = etc/xdg/openbox/rc.xml + source = git+https://github.com/BurntSushi/openbox-multihead.git#branch=multihead + md5sums = SKIP + +pkgname = openbox-multihead-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e28d6b6cca4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Lauri Jäntti <janttilauri at gmail.com> + +pkgname=openbox-multihead-git +_gitname=openbox-multihead +pkgver=7460.4e7c884 +pkgver() { + cd "$_gitname" + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} +pkgrel=1 +pkgdesc="A window manager for the X11 windowing system with multihead support" +arch=('i686' 'x86_64') +license=('GPL') +depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr' \ + 'libxcursor' 'pango' 'imlib2') +optdepends=('pyxdg: for the xdg-autostart script' 'xpybutil: for ob-visible-desks') +makedepends=('git' 'docbook-to-man') +url="https://github.com/BurntSushi/openbox-multihead/blob/multihead/README.MULTIHEAD" +install=openbox.install +options=('!libtool') +backup=('etc/xdg/openbox/menu.xml' 'etc/xdg/openbox/rc.xml') +conflicts=('openbox' 'openbox-git') +provides=('openbox' 'openbox-git') +source=('git+https://github.com/BurntSushi/openbox-multihead.git#branch=multihead') +md5sums=('SKIP') + +prepare() { + cd "$_gitname" + sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \ + data/autostart/openbox-xdg-autostart +} + +build() { + cd "$_gitname" + + ./bootstrap + ./configure --prefix=/usr \ + --with-x \ + --enable-startup-notification \ + --sysconfdir=/etc + make +} + +package(){ + cd "$_gitname" + + make DESTDIR=${pkgdir} install + sed -i "s:startkde:/opt/kde/bin/\0:" ${pkgdir}/usr/share/xsessions/openbox-kde.desktop + sed -i "s:=gnome-session:=/usr/bin/gnome-session:" ${pkgdir}/usr/share/xsessions/openbox-gnome.desktop + install -Dm755 tools/ob-visible-desks "$pkgdir/usr/bin/ob-visible-desks" +} + diff --git a/openbox.install b/openbox.install new file mode 100644 index 000000000000..b40a6a63123b --- /dev/null +++ b/openbox.install @@ -0,0 +1,11 @@ +post_install() { + echo "Place menu.xml, rc.xml and autostart.sh in ~/.config/openbox" + echo "They can be found in /etc/xdg/openbox" + echo "Multihead users! There are new configuration options." + echo "Please see /usr/share/doc/openbox/README.MULTIHEAD" +} + +post_upgrade() { + post_install +} + |