b1e92df97b8c1211089a6f547f973669d910c49c
[glsdk/meta-ti-glsdk.git] / recipes-misc / payload / bonescript.bb
1 DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"
3 PR = "r14"
5 inherit systemd
7 LICENSE = "MIT"
8 LIC_FILES_CHKSUM = "file://LICENSE;md5=659ee0c98db2664403c769d6b9ab50eb"
10 SRC_URI = "http://dominion.thruhere.net/koen/angstrom/beaglebone/bonescript-ca0f663083cea4e434864aa276d46ff79d471dff.tar.bz2 \
11            file://bonescript-git \
12            file://bone101.service \
13           "
14 SRC_URI[md5sum] = "2b7edd83a752eaf0be0c7488d32c7e72"
15 SRC_URI[sha256sum] = "839ee1147b83924f259dc5e373d73eb0eaa6ece76322dc156a6b04113fa89a91"
17 S = "${WORKDIR}/bonescript"
19 do_install() {
20         install -d ${D}${localstatedir}/lib/cloud9/
21         cp -a ${S}/* ${D}${localstatedir}/lib/cloud9/
22         cp -a ${S}/.git ${D}${localstatedir}/lib/cloud9/
24         install -d ${D}${base_libdir}/systemd/system
25         install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
27         rm -f ${D}${localstatedir}/lib/cloud9/node_modules/binary/node_modules/put/test/c/itof
28         rm -f ${D}${localstatedir}/lib/cloud9/node_modules/binary/node_modules/put/test/c/ftoi
29 }
31 SYSTEMD_PACKAGES = "${PN}"
32 SYSTEMD_SERVICE_${PN} = "bone101.service"
34 FILES_${PN} += "${localstatedir} ${base_libdir}/systemd/system"
35 CONFFILES_${PN} += "${localstatedir}/lib/cloud9/.git/config"
36 RDEPENDS_${PN} = "nodejs cloud9"
37 RRECOMMENDS_${PN} = "git"