diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 14:05:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 14:05:37 +0000 |
commit | 28e2dfd9306dfd8436acdc179088a980cf5c35c8 (patch) | |
tree | 7c1a0f35b679464d30942365c77326f90c5d1804 /testing | |
parent | b987acc56362f13babecf593bc67c5f917626cbd (diff) | |
download | aports-28e2dfd9306dfd8436acdc179088a980cf5c35c8.tar.bz2 aports-28e2dfd9306dfd8436acdc179088a980cf5c35c8.tar.xz |
testing/openbox: new aport
A highly configurable and standards-compliant X11 window manager
http://openbox.org
Diffstat (limited to 'testing')
-rw-r--r-- | testing/openbox/APKBUILD | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/testing/openbox/APKBUILD b/testing/openbox/APKBUILD new file mode 100644 index 0000000000..ad81cff2a3 --- /dev/null +++ b/testing/openbox/APKBUILD @@ -0,0 +1,77 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=openbox +pkgver=3.4.11.2 +pkgrel=0 +pkgdesc="A highly configurable and standards-compliant X11 window manager" +url="http://openbox.org" +arch="all" +license="GPLv2+" +depends= +depends_dev="pango-dev libxml2-dev libxcursor-dev libxrandr-dev libxinerama-dev startup-notification-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-gnome $pkgname-kde" +source="http://openbox.org/dist/openbox/openbox-$pkgver.tar.gz + http://icculus.org/openbox/tools/setlayout.c" + +_builddir="$srcdir"/openbox-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --disable-static \ + || return 1 + make || return 1 + gcc $CFLAGS $LDFLAGS -o setlayout "$srcdir"/setlayout.c -lX11 || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 + install "$_builddir"/setlayout "$pkgdir"/usr/bin/setlayout + rm -f "$pkgdir"/usr/lib/*.la +} + +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" + mkdir -p "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/share/xsessions + + mv "$pkgdir"/usr/bin/*gnome* \ + "$pkgdir"/usr/bin/gdm-control \ + "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/share/*gnome* \ + "$subpkgdir"/usr/share/ || return 1 + mv "$pkgdir"/usr/share/xsessions/*gnome* \ + "$subpkgdir"/usr/share/xsessions/ || return 1 +} + +kde() { + pkgdesc="KDE integration for openbox" + mkdir -p "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/share/xsessions + + mv "$pkgdir"/usr/bin/*kde* \ + "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/share/xsessions/*kde* \ + "$subpkgdir"/usr/share/xsessions/ || return 1 +} + +md5sums="30e669134fa81df810fe7d1dc59cd931 openbox-3.4.11.2.tar.gz +16ca0d290cae2f4c16a35e9cdfb6f503 setlayout.c" |