summaryrefslogtreecommitdiff
path: root/packages/neuros-public/neuros-nwm_git.bb
blob: 5cf1e5489b5c0f88fb469466b6866fac38e2423e (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
DESCRIPTION = "Neuros window manager"
LICENSE = "GPL"

PV = "0.0+${PR}+gitr${SRCREV}"
PR = "r7"

DEPENDS = "qt-embedded"

inherit qt4e update-rc.d

SRCREV = "b042e49d3a71cea6d4545ef6f2fc90979518b22e"
SRC_URI = "git://git.neurostechnology.com/git/app-nwm;protocol=git \
           file://init"

INITSCRIPT_NAME = "neuros-nwm"

S = "${WORKDIR}/git/"

do_configure_prepend() {
	rm ${S}/src/Makefile || true
	sed -i -e s:/usr/locl/bin:${bindir}:g ${WORKDIR}/init
}

do_install() {
    install -d ${D}/${bindir}
    install -m 0755  ${S}/build/nwm ${D}/${bindir}
	install -d ${D}/${libdir}
	ln -sf ${datadir}/fonts ${D}/${libdir}/fonts
	
	install -d ${D}/${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/neuros-nwm
}

FILES_${PN} += "${libdir}/fonts"