summaryrefslogtreecommitdiff
path: root/packages/keylaunch/keylaunch_2.0.10.bb
blob: f7d63968ac86f81fd74eeb46b0dcea7af87bf50e (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
inherit gpe

DEPENDS = "virtual/xserver libxtst libxau libxpm libgpelaunch display-brightness"

RDEPENDS_append_spitz = " display-brightness"
RDEPENDS_append_akita = " display-brightness"
RDEPENDS_append_c7x0 = " display-brightness"

SECTION = "gpe"
LICENSE = "GPL"
DESCRIPTION = "A small utility for binding commands to a hot key.\
 Keylaunch is a minimal utility for associating commands with hot keys. This\
 GPE version is intended for use with the special keys found on most handheld\
 computers. You can connect each key to a program of your choice; if the\
 program is already running, keylaunch can bring its window to the front\
 rather than just running another copy."
PACKAGE_ARCH = "${MACHINE_ARCH}"
PR = "r12"

SRC_URI += " file://keylaunchrc"
SRC_URI += " file://makefile-fix.patch;patch=1"
SRC_URI += " file://80chvt-SUID"

do_install_prepend () {
	install ${WORKDIR}/keylaunchrc ${S}/keylaunchrc
	
	install -d ${D}/etc/X11/Xinit.d
	install ${WORKDIR}/80chvt-SUID ${D}/etc/X11/Xinit.d
}

do_install_append() {
	# yeah I know...this is less than ideal
	mv ${D}/etc/keylaunchrc ${D}/etc/keylaunchrc.matchbox
}

export CVSBUILD="no"

pkg_postinst_${PN}() {
	update-alternatives --install /etc/keylaunchrc keylaunchrc /etc/keylaunchrc.matchbox 10
}

pkg_postrm_${PN}() {
       update-alternatives --remove keylaunchrc /etc/keylaunchrc.matchbox
}