diff options
| -rw-r--r-- | recipes-containers/oci-image-spec/oci-image-spec_git.bb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes-containers/oci-image-spec/oci-image-spec_git.bb b/recipes-containers/oci-image-spec/oci-image-spec_git.bb index 92a83998..58057408 100644 --- a/recipes-containers/oci-image-spec/oci-image-spec_git.bb +++ b/recipes-containers/oci-image-spec/oci-image-spec_git.bb | |||
| @@ -9,8 +9,8 @@ SRCNAME = "image-spec" | |||
| 9 | PKG_NAME = "github.com/opencontainers/${SRCNAME}" | 9 | PKG_NAME = "github.com/opencontainers/${SRCNAME}" |
| 10 | SRC_URI = "git://${PKG_NAME}.git;destsuffix=git/src/${PKG_NAME}" | 10 | SRC_URI = "git://${PKG_NAME}.git;destsuffix=git/src/${PKG_NAME}" |
| 11 | 11 | ||
| 12 | SRCREV = "91d3eaabebcdc329edd9b4ff0f28f8f90022201f" | 12 | SRCREV = "bd4f8fcb0979a663d8b97a1d4d9b030b3d2ca1fa" |
| 13 | PV = "v1.0.0-rc4+git${SRCPV}" | 13 | PV = "v1.0.1+git${SRCPV}" |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 16 | 16 | ||
| @@ -21,11 +21,11 @@ do_compile() { | |||
| 21 | do_install() { | 21 | do_install() { |
| 22 | install -d ${D}${prefix}/local/go/src/${PKG_NAME} | 22 | install -d ${D}${prefix}/local/go/src/${PKG_NAME} |
| 23 | for j in $(cd ${S} && find src/${PKG_NAME} -name "*.go"); do | 23 | for j in $(cd ${S} && find src/${PKG_NAME} -name "*.go"); do |
| 24 | if [ ! -d ${D}${prefix}/local/go/$(dirname $j) ]; then | 24 | cp --parents $j ${D}${prefix}/local/go/ |
| 25 | mkdir -p ${D}${prefix}/local/go/$(dirname $j) | ||
| 26 | fi | ||
| 27 | cp $j ${D}${prefix}/local/go/$j | ||
| 28 | done | 25 | done |
| 26 | # .tool isn't useful, so remote it. | ||
| 27 | rm -rf ${D}${prefix}/local/go/src/${PKG_NAME}/.tool/ | ||
| 28 | |||
| 29 | cp -r ${S}/src/${PKG_NAME}/LICENSE ${D}${prefix}/local/go/src/${PKG_NAME}/ | 29 | cp -r ${S}/src/${PKG_NAME}/LICENSE ${D}${prefix}/local/go/src/${PKG_NAME}/ |
| 30 | } | 30 | } |
| 31 | 31 | ||
| @@ -38,4 +38,4 @@ image_spec_file_sysroot_preprocess () { | |||
| 38 | 38 | ||
| 39 | FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" | 39 | FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" |
| 40 | 40 | ||
| 41 | CLEANBROKEN = "1" \ No newline at end of file | 41 | CLEANBROKEN = "1" |
