diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-24 21:47:07 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-24 21:47:07 -0500 |
commit | c1c9dee16e60736ce86e45ed3c66f6de172ee379 (patch) | |
tree | ce2520404fa428200fd8994afaad144ce5deae34 /user/openbox/APKBUILD | |
parent | d1d53dce54390a3bb171d6433f22bc1a91db2fc5 (diff) | |
download | packages-c1c9dee16e60736ce86e45ed3c66f6de172ee379.tar.gz packages-c1c9dee16e60736ce86e45ed3c66f6de172ee379.tar.bz2 packages-c1c9dee16e60736ce86e45ed3c66f6de172ee379.tar.xz packages-c1c9dee16e60736ce86e45ed3c66f6de172ee379.zip |
user/openbox: modernise, fix up, install Gnome/KDE integration if they're installed
Diffstat (limited to 'user/openbox/APKBUILD')
-rw-r--r-- | user/openbox/APKBUILD | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/user/openbox/APKBUILD b/user/openbox/APKBUILD new file mode 100644 index 000000000..a062a6d26 --- /dev/null +++ b/user/openbox/APKBUILD @@ -0,0 +1,86 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: +pkgname=openbox +pkgver=3.6.1 +pkgrel=3 +pkgdesc="Highly configurable and standards-compliant X11 window manager" +url="http://openbox.org/" +arch="all" +license="GPL-2.0+" +depends="" +depends_dev="libxcursor-dev libxinerama-dev libxrandr-dev + startup-notification-dev" +makedepends="$depends_dev imlib2-dev librsvg-dev libxml2-dev pango-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-gnome + $pkgname-kde $pkgname-lang" +source="http://openbox.org/dist/openbox/openbox-$pkgver.tar.gz + http://icculus.org/openbox/tools/setlayout.c" + +prepare() { + cd "$builddir" + update_config_sub + default_prepare +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static + make + gcc $CFLAGS $LDFLAGS -o setlayout "$srcdir"/setlayout.c -lX11 +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install + install "$builddir"/setlayout "$pkgdir"/usr/bin/setlayout +} + +libs() { + pkgdesc="Shared libraries for Openbox" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ +} + +gnome() { + pkgdesc="GNOME integration for Openbox" + install_if="$pkgname=$pkgver-r$pkgrel gnome-desktop" + mkdir -p "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/share/xsessions + + mv "$pkgdir"/usr/bin/*gnome* \ + "$pkgdir"/usr/bin/gdm-control \ + "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/share/*gnome* \ + "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/xsessions/*gnome* \ + "$subpkgdir"/usr/share/xsessions/ +} + +kde() { + pkgdesc="KDE integration for Openbox" + install_if="$pkgname=$pkgver-r$pkgrel plasma-desktop" + mkdir -p "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/share/xsessions + + mv "$pkgdir"/usr/bin/*kde* \ + "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/share/xsessions/*kde* \ + "$subpkgdir"/usr/share/xsessions/ +} + +md5sums="b72794996c6a3ad94634727b95f9d204 openbox-3.6.1.tar.gz +16ca0d290cae2f4c16a35e9cdfb6f503 setlayout.c" +sha256sums="8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7 openbox-3.6.1.tar.gz +3bfa0b406cd9e4c3d5425711d237e8c701a8b88a927319be0f83428c09a629b2 setlayout.c" +sha512sums="5e6f4a214005bea8b26bc8959fe5bb67356a387ddd317e014f43cb5b5bf263ec617a5973e2982eb76a08dc7d3ca5ec9e72e64c9b5efd751001a8999b420b1ad0 openbox-3.6.1.tar.gz +40f7913ecc1b5df9a931ab36a5d4cf47b59eba543fe8b21e4a2724e7cfdfe06814893d8ded8c7a1ce0082126ca89397de0521f9c265a57e376664042b63d612f setlayout.c" |