blob: 31d724ce3daa1a4fda48d438ffea6a98a4e25128 [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001DESCRIPTION = "The Docker toolset to pack, ship, store, and deliver content"
2HOMEPAGE = "https://github.com/docker/distribution"
3SECTION = "devel/go"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
6
7SRCNAME = "distribution"
8
9PKG_NAME = "github.com/docker/${SRCNAME}"
10SRC_URI = "git://${PKG_NAME}.git"
11
12SRCREV = "d957768537c5af40e4f4cd96871f7b2bde9e2923"
13
14S = "${WORKDIR}/git"
15
16do_unpackpost() {
17 rm -rf ${S}/[A-KM-Za-ce-z]* ${S}/doc*
18}
19
20addtask unpackpost after do_unpack before do_patch
21
22do_install() {
23 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
24 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
25}
26
27SYSROOT_PREPROCESS_FUNCS += "go_distribution_digeset_sysroot_preprocess"
28
29go_distribution_digeset_sysroot_preprocess () {
30 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
31 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
32}
33
34FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"