1 DESCRIPTION = "Matrix GUI Application launcher"
2 HOMEPAGE = "https://gforge.ti.com/gf/project/matrix-gui-v2/"
4 LICENSE = "BSD MIT Apache"
5 LIC_FILES_CHKSUM = "file://scripts/jquery-1.6.2.min.js;md5=a1a8cb16a060f6280a767187fd22e037"
7 SECTION = "multimedia"
9 PR = "r2"
11 inherit allarch
13 BRANCH ?= "master"
14 SRCREV = "9f5d27fec216f223c43b48fa146edf4a4bb7aa24"
16 SRC_URI = "git://gitorious.org/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
17 file://matrix-gui.service"
19 require matrix-gui-paths.inc
21 S = "${WORKDIR}/git"
23 do_install(){
24 install -d ${D}${MATRIX_BASE_DIR}
25 cp -rf ${S}/* ${D}${MATRIX_BASE_DIR}
27 # Set the proper path in the init script
28 sed -i -e s=__MATRIX_BASE_DIR__=${MATRIX_BASE_DIR}=g ${WORKDIR}/matrix-gui.service
30 install -d ${D}${base_libdir}/systemd/system/
31 install -m 0755 ${WORKDIR}/matrix-gui.service ${D}${base_libdir}/systemd/system/
33 # activate it on first boot
34 install -d ${D}${base_libdir}/systemd/system/multi-user.target.wants
35 ln -sf ../matrix-gui.service ${D}${base_libdir}/systemd/system/multi-user.target.wants/
36 }
38 RDEPENDS_${PN} += "nodejs"
39 FILES_${PN} += "${MATRIX_BASE_DIR}/* ${base_libdir}/systemd/system"