xref: /openbmc/openbmc/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb (revision 96e4b4e121e0e2da1535d7d537d6a982a6ff5bc0)
1SUMMARY = "This is a simple example recipe that cross-compiles a Go program."
2SECTION = "examples"
3HOMEPAGE = "https://golang.org/"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
7
8SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}"
9SRCREV = "d7b0ac1278591aea848a99258ccfdee8e4d454c1"
10UPSTREAM_CHECK_COMMITS = "1"
11
12GO_IMPORT = "golang.org/x/example"
13GO_INSTALL = "${GO_IMPORT}/hello"
14
15export GO111MODULE = "off"
16
17inherit go
18
19# This is just to make clear where this example is
20do_install:append() {
21    mv ${D}${bindir}/hello ${D}${bindir}/${BPN}
22}
23
24# /usr/lib/go/src/golang.org/x/example/ragserver/tests/weaviate-show-all.sh is requiring bash
25RDEPENDS:${PN}-dev += "bash"
26