2010-01-08 14:28:18 +00:00
|
|
|
# Template file for 'openbox'
|
|
|
|
pkgname=openbox
|
2013-08-12 07:04:04 +00:00
|
|
|
version=3.5.2
|
2014-06-04 10:05:43 +00:00
|
|
|
revision=4
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2010-01-08 14:28:18 +00:00
|
|
|
configure_args="--enable-startup-notification"
|
2014-02-21 15:24:06 +00:00
|
|
|
hostmakedepends="automake libtool pkg-config gettext-devel"
|
2013-04-14 03:01:48 +00:00
|
|
|
makedepends="startup-notification-devel libxml2-devel libXrandr-devel
|
2013-08-12 07:46:25 +00:00
|
|
|
libXcursor-devel>=1.1.14_2 libXinerama-devel libSM-devel imlib2-devel pango-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/xdg/openbox/menu.xml
|
|
|
|
/etc/xdg/openbox/rc.xml
|
|
|
|
/etc/xdg/openbox/environment
|
|
|
|
/etc/xdg/openbox/autostart"
|
2010-01-08 14:28:18 +00:00
|
|
|
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"
|
2013-04-14 03:01:48 +00:00
|
|
|
homepage="http://www.openbox.org"
|
|
|
|
distfiles="http://icculus.org/openbox/releases/$pkgname-$version.tar.gz"
|
2013-08-12 07:04:04 +00:00
|
|
|
checksum=128fb4ef11f83f6edb1685cfc04f44a16a5322082fc519f9d7cac84fc658af33
|
2013-08-12 07:46:25 +00:00
|
|
|
|
2013-08-12 07:04:04 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="svg"
|
|
|
|
|
|
|
|
if [ "$build_option_svg" ]; then
|
|
|
|
configure_args+=" --enable-librsvg"
|
|
|
|
makedepends+=" librsvg-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-librsvg"
|
|
|
|
fi
|
|
|
|
|
2014-02-21 15:24:06 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2012-01-16 17:25:27 +00:00
|
|
|
post_install() {
|
2013-07-28 16:23:07 +00:00
|
|
|
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
|
2012-01-16 17:25:27 +00:00
|
|
|
}
|
2013-04-14 03:01:48 +00:00
|
|
|
|
|
|
|
openbox-devel_package() {
|
2014-02-21 15:24:06 +00:00
|
|
|
depends="libopenbox>=${version}_${revision}"
|
2013-04-14 03:01:48 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-28 16:23:07 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 03:01:48 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libopenbox_package() {
|
|
|
|
short_desc="openbox runtime shared libraries"
|
|
|
|
pkg_install() {
|
2013-07-28 16:23:07 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 03:01:48 +00:00
|
|
|
}
|
|
|
|
}
|