blob: b61c97a6fefe6b6186bd59c35f9af7808961c1d4 [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001DESCRIPTION = "Go bindings to systemd socket activation, journal, D-Bus, and unit files"
2HOMEPAGE = "https://github.com/coreos/go-systemd"
3SECTION = "devel/go"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5"
6
7SRCNAME = "systemd"
8
9PKG_NAME = "github.com/coreos/go-${SRCNAME}"
10SRC_URI = "git://${PKG_NAME}.git"
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012SRCREV = "b4a58d95188dd092ae20072bac14cece0e67c388"
13PV = "4+git${SRCREV}"
14
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015RDEPENDS_${PN} += "bash"
Patrick Williamsd849ec72016-08-17 14:59:38 -050016
17S = "${WORKDIR}/git"
18
19do_install() {
20 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
21 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
22}
23
24SYSROOT_PREPROCESS_FUNCS += "go_systemd_sysroot_preprocess"
25
26go_systemd_sysroot_preprocess () {
27 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
28 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
29}
30
31FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"