From 681b8fac1f16e7d4afc3d75033790e5fca1435a4 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 13 Nov 2017 10:24:46 +0100 Subject: [PATCH] GO: Update from 1.4.2 to 1.9.2 request from niclas helpdesk Go Update 08.11.17 --- go.be0 | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 go.be0 diff --git a/go.be0 b/go.be0 new file mode 100755 index 000000000..163eb58e1 --- /dev/null +++ b/go.be0 @@ -0,0 +1,64 @@ +#!/usr/bin/env beesh + +# BEE_VERSION go-1.9.2-0 + +SRCURL[0]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz" + +# PATCHURL+=() + +# EXCLUDE+=() + +build_in_sourcedir + +sourcesubdir_append src + + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + export GOROOT_BOOTSTRAP=${PREFIX} \ + GOROOT_FINAL=${LIBDIR}/go-${PKGVERSION} + start_cmd ${S}/make.bash #${BEE_MAKEFLAGS} + exit +} + +mee_install() { + # Install Binaries + start_cmd mkdir -p ${D}${BINDIR} + start_cmd mkdir -p ${D}${LIBDIR}/go-${PKGVERSION} + start_cmd cp -r ${S}/../bin ${D}${LIBDIR}/go-${PKGVERSION} + cd ${D}${BINDIR} + start_cmd ln -s ../lib/go-${PKGVERSION}/bin/go go + start_cmd ln -s ../lib/go-${PKGVERSION}/bin/gofmt gofmt + + # Install standardlibs https://golang.org/pkg/#stdlib + LIBS="archive bufio builtin bytes compress container context crypto database \ + debug encoding errors expvar flag fmt go hash html image index internal io \ + log math mime net os path plugin reflect regexp runtime sort strconv strings \ + sync syscall testing text time unicode unsafe" + + start_cmd ${S}/../bin/go install -buildmode=shared std + + start_cmd mkdir -p ${D}${LIBDIR}/go-${PKGVERSION}/src + for i in $LIBS; do + start_cmd cp -r ${S}/${i} ${D}${LIBDIR}/go-${PKGVERSION}/src + done + + #Install tools for go + start_cmd mkdir -p ${D}${LIBDIR}/go-${PKGVERSION}/pkg + start_cmd cp -r ${S}/../pkg/tool ${D}${LIBDIR}/go-${PKGVERSION}/pkg + start_cmd cp -r ${S}/../pkg/include ${D}${LIBDIR}/go-${PKGVERSION}/pkg + start_cmd cp -r ${S}/../pkg/linux_amd64 ${D}${LIBDIR}/go-${PKGVERSION}/pkg + start_cmd cp -r ${S}/../pkg/linux_amd64_dynlink ${D}${LIBDIR}/go-${PKGVERSION}/pkg +} +## by default this may be 'make install DESTDIR="${D}"'