From 1a229996c3bd26cc39e409fac83d29b3f5d5b17c Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 21 Feb 2022 21:39:04 +0000 Subject: added feh --- repo/devel/go.xibuild | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 repo/devel/go.xibuild (limited to 'repo/devel/go.xibuild') diff --git a/repo/devel/go.xibuild b/repo/devel/go.xibuild new file mode 100644 index 0000000..3ba502d --- /dev/null +++ b/repo/devel/go.xibuild @@ -0,0 +1,40 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=() + +PKG_VER=1.17.7 +SOURCE=https://go.dev/dl/go$PKG_VER.src.tar.gz +DESC="Core compiler tools for the Go programming language" + +build () { + export GOARCH=amd64 + export GOAMD64=v1 # make sure we're building for the right x86-64 version + export GOROOT_FINAL=/usr/lib/go + export GOROOT_BOOTSTRAP=/usr/lib/go + + cd src + ./make.bash -v + cd .. +} + +package () { + install -d "$PKG_DEST/usr/bin" "$PKG_DEST/usr/lib/go" "$PKG_DEST/usr/share/doc/go" \ + "$PKG_DEST/usr/lib/go/pkg/linux_amd64_"{dynlink,race} + + cp -a bin pkg src lib misc api test "$PKG_DEST/usr/lib/go" + cp -r doc/* "$PKG_DEST/usr/share/doc/go" + + ln -sf /usr/lib/go/bin/go "$PKG_DEST/usr/bin/go" + ln -sf /usr/lib/go/bin/gofmt "$PKG_DEST/usr/bin/gofmt" + ln -sf /usr/share/doc/go "$PKG_DEST/usr/lib/go/doc" + + install -Dm644 VERSION "$PKG_DEST/usr/lib/go/VERSION" + + rm -rf "$PKG_DEST/usr/lib/go/pkg/bootstrap" "$PKG_DEST/usr/lib/go/pkg/tool/*/api" + + # TODO: Figure out if really needed + rm -rf "$PKG_DEST"/usr/lib/go/pkg/obj/go-build/* + + install -Dm644 LICENSE "$PKG_DEST/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.1