void-packages/srcpkgs/openbox/template
2022-01-06 12:13:21 -05:00

54 lines
1.6 KiB
Bash

# Template file for 'openbox'
pkgname=openbox
version=3.6.1
revision=4
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="Orphaned <orphan@voidlinux.org>"
license="GPL-2"
homepage="http://www.openbox.org"
distfiles="http://openbox.org/dist/openbox/openbox-$version.tar.xz"
checksum=abe75855cc5616554ffd47134ad15291fe37ebbebf1a80b69cbde9d670f0e26d
python_version=3
# Package build options
build_options="svg"
build_options_default="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="${makedepends} libopenbox>=${version}_${revision}"
short_desc="Openbox development files"
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.*"
}
}