From 994700b51c271f42d1b06c6f224eb49bca2b534c Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sun, 30 Aug 2020 10:12:16 +0200 Subject: [PATCH] recipes-devtools: Add protobuffer recipes Signed-off-by: Thomas Klaehn --- .../protobuffer/protoc-gen-doc_1.3.2.bb | 22 +++++++++++++++ recipes-devtools/protobuffer/protoc_3.13.0.bb | 28 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 recipes-devtools/protobuffer/protoc-gen-doc_1.3.2.bb create mode 100644 recipes-devtools/protobuffer/protoc_3.13.0.bb diff --git a/recipes-devtools/protobuffer/protoc-gen-doc_1.3.2.bb b/recipes-devtools/protobuffer/protoc-gen-doc_1.3.2.bb new file mode 100644 index 0000000..fa6af1d --- /dev/null +++ b/recipes-devtools/protobuffer/protoc-gen-doc_1.3.2.bb @@ -0,0 +1,22 @@ +SUMMARY = "Google's protobuffer doc generator" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "https://github.com/pseudomuto/protoc-gen-doc/releases/download/v${PV}/protoc-gen-doc-${PV}.linux-amd64.go1.12.6.tar.gz" + +SRC_URI[md5sum] = "28d6117df511e0b1a1f2a9ca4c63433a" +SRC_URI[sha256sum] = "73adb873825c3926403125a33134ca4a3d99d69fc9f23120142e0dcb543322c9" + +FILES_${PN} = " \ + ${bindir}/protoc-gen-doc \ +" + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/protoc-gen-doc-${PV}.linux-amd64.go1.12.6/protoc-gen-doc ${D}${bindir} +} + +INSANE_SKIP_${PN} += " \ + already-stripped \ +" + diff --git a/recipes-devtools/protobuffer/protoc_3.13.0.bb b/recipes-devtools/protobuffer/protoc_3.13.0.bb new file mode 100644 index 0000000..241a819 --- /dev/null +++ b/recipes-devtools/protobuffer/protoc_3.13.0.bb @@ -0,0 +1,28 @@ +SUMMARY = "Google's protobuffer" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip" + +SRC_URI[md5sum] = "20a5326fbc666e1fd069eaa80875fcac" +SRC_URI[sha256sum] = "4a3b26d1ebb9c1d23e933694a6669295f6a39ddc64c3db2adf671f0a6026f82e" + +FILES_${PN} = " \ + ${includedir}/google/protobuf/*.proto \ + ${includedir}/google/protobuf/compiler/*.proto \ + ${bindir}/protoc \ +" + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/bin/protoc ${D}${bindir} + + install -d ${D}${includedir}/google/protobuf/compiler + install -m 0644 ${WORKDIR}/include/google/protobuf/*.proto ${D}${includedir}/google/protobuf/ + install -m 0644 ${WORKDIR}/include/google/protobuf/compiler/*.proto ${D}${includedir}/google/protobuf/compiler/ +} + +INSANE_SKIP_${PN} += " \ + already-stripped \ +" +