Skip to content

Commit

Permalink
GO: Update from 1.4.2 to 1.9.2
Browse files Browse the repository at this point in the history
request from niclas
helpdesk Go Update 08.11.17
  • Loading branch information
david committed Nov 13, 2017
1 parent 7cb613b commit 681b8fa
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions go.be0
Original file line number Diff line number Diff line change
@@ -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}"'

0 comments on commit 681b8fa

Please sign in to comment.