summaryrefslogtreecommitdiff
path: root/recipes/matchbox2/matchbox2_2.0.bb
blob: 2488e1b08fbaa3ebce1bd62347abde8fd85bf832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DESCRIPTION = "Metapackage for Matchbox2 suite"
LICENSE = "GPL"
DEPENDS = "matchbox-wm-2 matchbox-panel-2 matchbox-desktop-2"
RDEPENDS_${PN} = "matchbox-wm-2 matchbox-panel-2 matchbox-desktop-2"
SECTION = "x11/wm"
PR = "r2"

SRC_URI = "file://matchbox-session-2.in \
	   file://defaults.in \
"
inherit update-alternatives

ALTERNATIVE_NAME = "x-window-manager"
ALTERNATIVE_LINK = "${bindir}/x-window-manager"
ALTERNATIVE_PATH = "${bindir}/matchbox-session-2"
ALTERNATIVE_PRIORITY = "20"

do_compile() {
	sed "s:@datadir@:${datadir}:g;s:@sysconfdir@:${sysconfdir}:g" <${WORKDIR}/matchbox-session-2.in >matchbox-session-2
	sed "s:@datadir@:${datadir}:g;s:@sysconfdir@:${sysconfdir}:g" <${WORKDIR}/defaults.in >defaults
}

do_install() {
	mkdir -p ${D}${bindir} ${D}${sysconfdir}/matchbox2
	install -m 0755 matchbox-session-2 ${D}${bindir}
	install -m 0644 defaults ${D}${sysconfdir}/matchbox2
}

FILES_${PN} += "${sysconfdir}/matchbox2"