summaryrefslogtreecommitdiffstats
path: root/recipes-ti/matrix/matrix-gui_2.0.bb
blob: 60b1a040e821969204e266a5a10c6dbeea5a3e62 (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
DESCRIPTION = "Matrix GUI Application launcher"
HOMEPAGE = "https://gforge.ti.com/gf/project/matrix-gui-v2/"

LICENSE = "BSD MIT Apache"
LIC_FILES_CHKSUM = "file://scripts/jquery-1.6.2.min.js;md5=a1a8cb16a060f6280a767187fd22e037"

SECTION = "multimedia"

PR = "r2"

inherit allarch

BRANCH ?= "master"
SRCREV = "9f5d27fec216f223c43b48fa146edf4a4bb7aa24"

SRC_URI = "git://gitorious.org/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
           file://matrix-gui.service"

require matrix-gui-paths.inc

S = "${WORKDIR}/git"

do_install(){
	install -d ${D}${MATRIX_BASE_DIR}
	cp -rf ${S}/* ${D}${MATRIX_BASE_DIR}

    # Set the proper path in the init script
    sed -i -e s=__MATRIX_BASE_DIR__=${MATRIX_BASE_DIR}=g ${WORKDIR}/matrix-gui.service

	install -d ${D}${base_libdir}/systemd/system/
    install -m 0755 ${WORKDIR}/matrix-gui.service ${D}${base_libdir}/systemd/system/

	# activate it on first boot
	install -d ${D}${base_libdir}/systemd/system/multi-user.target.wants
	ln -sf ../matrix-gui.service ${D}${base_libdir}/systemd/system/multi-user.target.wants/
}

RDEPENDS_${PN} += "nodejs"
FILES_${PN} += "${MATRIX_BASE_DIR}/* ${base_libdir}/systemd/system"