# Filename: fluxbox-gpe_1.0rc.bb
# Date: 01-Jul-06
-DESCRIPTION = "The Fluxbox WindowManager for use with GPE"
+DESCRIPTION = "The Fluxbox WindowManager"
MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>"
HOMEPAGE = "http://fluxbox.sourceforge.net"
LICENSE = "MIT"
-RCONFLICTS = "fluxbox"
+REALPV = "1.0rc"
+PR = "r0"
######################################################################################
-PR = "r2"
-S = "${WORKDIR}/fluxbox-${PV}"
+S = "${WORKDIR}/fluxbox-${REALPV}"
######################################################################################
-SRC_URI = "http://switch.dl.sourceforge.net/sourceforge/fluxbox/fluxbox-${PV}.tar.gz \
- file://gpe-init.patch;patch=1\
+SRC_URI = "${SOURCEFORGE_MIRROR}/fluxbox/fluxbox-${REALPV}.tar.gz \
+ file://gpe-init.patch;patch=1 \
file://apps.gpe.* \
file://style.gpe-default \
file://fluxbox-gpe-session \
- file://fluxbox-gpe.session"
+ file://fluxbox-gpe.session"
######################################################################################
-PACKAGES = "${PN} ${PN}-styles"
+PACKAGES = "${PN}-gpe ${PN}-styles ${PN}-doc ${PN}"
DESCRIPTION_${PN}-styles = "The default styles for fluxbox"
+DESCRIPTION_${PN}-gpe = "The Fluxbox WindowManager for use with GPE"
+RDEPENDS_${PN}-gpe = "${PN}"
######################################################################################
FILES_${PN} = "/usr/bin \
/usr/share/fluxbox/init \
/usr/share/fluxbox/keys \
- /usr/share/fluxbox/menu \
- /usr/share/fluxbox/apps.gpe* \
- /usr/share/fluxbox/session \
- /usr/share/fluxbox/styles/gpe-default"
+ /usr/share/fluxbox/menu "
+
+FILES_${PN}-gpe = "/usr/share/fluxbox/apps.gpe* \
+ /usr/share/fluxbox/styles/gpe-default \
+ /usr/share/fluxbox/session \
+ /usr/bin/fluxbox-gpe-session"
FILES_${PN}-styles = "/usr/share/fluxbox/styles"
+FILES_${PN}-doc = "/usr/share/man"
+
######################################################################################
-inherit autotools
+inherit autotools update-alternatives
######################################################################################
######################################################################################
-pkg_postinst_${PN}() {
- update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/fluxbox-gpe-session 15
-}
-
-pkg_postrm_${PN}() {
- update-alternatives --remove x-window-manager /usr/bin/fluxbox-gpe-session
-}
-
+ALTERNATIVE_PATH = "${bindir}/fluxbox-gpe-session"
+ALTERNATIVE_NAME = "x-window-manager"
+ALTERNATIVE_LINK = "${bindir}/x-window-manager"
+ALTERNATIVE_PRIORITY = "15"