void-packages/srcpkgs/openbox/template
2015-06-02 07:05:11 +02:00

51 lines
1.5 KiB
Bash

# Template file for 'openbox'
pkgname=openbox
version=3.6
revision=1
build_style=gnu-configure
configure_args="--enable-startup-notification $(vopt_enable svg librsvg)"
hostmakedepends="automake libtool pkg-config gettext-devel"
makedepends="startup-notification-devel libxml2-devel libXrandr-devel
libXcursor-devel libXinerama-devel libSM-devel imlib2-devel
pango-devel $(vopt_if svg librsvg-devel)"
conf_files="
/etc/xdg/openbox/menu.xml
/etc/xdg/openbox/rc.xml
/etc/xdg/openbox/environment
/etc/xdg/openbox/autostart"
short_desc="Standards compliant, fast, light-weight, extensible window manager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.openbox.org"
distfiles="http://icculus.org/openbox/releases/$pkgname-$version.tar.gz"
checksum=866c0ab8cb1cd15c7ae8022179cb6132a4c0f0476673bd3b834a1ef67a593ba8
# Package build options
build_options="svg"
pre_configure() {
autoreconf -fi
}
post_install() {
rm ${DESTDIR}/usr/bin/{gdm-control,gnome-panel-control}
sed -i 's:startkde:/usr/bin/\0:' \
${DESTDIR}/usr/share/xsessions/openbox-kde.desktop
sed -i 's:=gnome-session:=/usr/bin/gnome-session:' \
${DESTDIR}/usr/share/xsessions/openbox-gnome.desktop
}
openbox-devel_package() {
depends="libglib-devel libxml2-devel libXft-devel pango-devel imlib2-devel libopenbox>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
}
}
libopenbox_package() {
short_desc="openbox runtime shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}