blob: 5565946422c1d31d6d941c7d46ddf53e31021b86 [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001DESCRIPTION = "Primitives for identity and authorization"
2HOMEPAGE = "https://github.com/docker/libtrust"
3SECTION = "devel/go"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=435b266b3899aa8a959f17d41c56def8"
6
7SRCNAME = "libtrust"
8
9PKG_NAME = "github.com/docker/${SRCNAME}"
10SRC_URI = "git://${PKG_NAME}.git"
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012SRCREV = "9cbd2a1374f46905c68a4eb3694a130610adc62a"
13PV = "0.0+git${SRCPV}"
Patrick Williamsd849ec72016-08-17 14:59:38 -050014
15S = "${WORKDIR}/git"
16
17do_install() {
18 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
19 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
20}
21
22SYSROOT_PREPROCESS_FUNCS += "go_libtrust_sysroot_preprocess"
23
24go_libtrust_sysroot_preprocess () {
25 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
26 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
27}
28
29FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"