blob: 5cbab92e28f6bd7c0d941a839b6d94afcf0bd598 [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
15DEPENDS += " \
16 bash \
17"
Patrick Williamsd849ec72016-08-17 14:59:38 -050018
19S = "${WORKDIR}/git"
20
21do_install() {
22 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
23 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
24}
25
26SYSROOT_PREPROCESS_FUNCS += "go_systemd_sysroot_preprocess"
27
28go_systemd_sysroot_preprocess () {
29 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
30 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
31}
32
33FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"