void-packages/srcpkgs/openbox/template

53 lines
1.6 KiB
Text
Raw Normal View History

# Template file for 'openbox'
pkgname=openbox
version=3.5.2
revision=6
build_style=gnu-configure
configure_args="--enable-startup-notification $(vopt_enable svg librsvg)"
2014-02-21 15:24:06 +00:00
hostmakedepends="automake libtool pkg-config gettext-devel"
makedepends="startup-notification-devel libxml2-devel libXrandr-devel
libXcursor-devel>=1.1.14_2 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@gmail.com>"
2012-01-16 16:22:47 +00:00
license="GPL-2"
homepage="http://www.openbox.org"
2014-11-03 22:43:38 +00:00
update_site="${homepage}/wiki/Openbox:Download"
distfiles="http://icculus.org/openbox/releases/$pkgname-$version.tar.gz"
checksum=128fb4ef11f83f6edb1685cfc04f44a16a5322082fc519f9d7cac84fc658af33
# Package build options
build_options="svg"
2014-02-21 15:24:06 +00:00
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.*"
}
}