recipes-devtools: Add protobuffer recipes

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn 2020-08-30 10:12:16 +02:00
parent d74059638a
commit 994700b51c
2 changed files with 50 additions and 0 deletions

View File

@ -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 \
"

View File

@ -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 \
"