beaglebone getting started: update to 1.0 release
[glsdk/meta-ti-glsdk.git] / recipes-misc / payload / bonescript.bb
1 DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"
3 PR = "r9"
5 inherit allarch systemd
7 # Ask Jason
8 LICENSE = "MIT"
9 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
11 SRCREV = "f246a7236d3e7f4694b88406c3d8d901c9842820"
12 SRC_URI = "git://github.com/jadonk/bonescript.git \
13            file://bonescript-git \
14            file://bone101.service \
15           "
16 S = "${WORKDIR}/git"
18 do_install() {
19         install -m 0644 ${WORKDIR}/bonescript-git ${S}/.git/config
20         cp $(cat .git/objects/info/alternates)/pack/* .git/objects/pack
21         rm -f ${S}/.git/objects/info/alternates
22         echo ${SRCREV} > .git/refs/heads/master
23         git checkout master || true
24         install -d ${D}${localstatedir}/lib/cloud9/
25         cp -a ${S}/* ${D}${localstatedir}/lib/cloud9/
26         cp -a ${S}/.git ${D}${localstatedir}/lib/cloud9/
28         install -d ${D}${base_libdir}/systemd/system
29         install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
30 }
32 SYSTEMD_PACKAGES = "${PN}"
33 SYSTEMD_SERVICE_${PN} = "bone101.service"
35 FILES_${PN} += ""${localstatedir} ${base_libdir}/systemd/system"
36 RDEPENDS_${PN} = "nodejs cloud9"
37 RRECOMMENDS_${PN} = "git"