wok annotate go/receipt @ rev 20799

updated clonezilla (3.3.10 -> 3.27.16)
author Hans-G?nter Theisgen
date Fri Feb 15 13:43:34 2019 +0100 (2019-02-15)
parents 14aaa769338b
children a3c45ab9082e
rev   line source
domcox@16005 1 # SliTaz package receipt.
domcox@16005 2
domcox@16005 3 PACKAGE="go"
domcox@16005 4 VERSION="1.2.1"
domcox@16005 5 CATEGORY="development"
domcox@16005 6 SHORT_DESC="The Go programming language (R.Griesemer R.Pike K.Thompson)"
domcox@16005 7 MAINTAINER="domcox@slitaz.org"
domcox@16005 8 LICENSE="BSD"
domcox@16005 9 WEB_SITE="http://www.golang.org"
domcox@16005 10 TARBALL="$PACKAGE$VERSION.src.tar.gz"
domcox@16005 11 WGET_URL="https://go.googlecode.com/files/$TARBALL"
domcox@16005 12 TAGS="go"
domcox@16005 13
domcox@16005 14 DEPENDS=""
pascal@16009 15 BUILD_DEPENDS="bash bison make ed wget"
domcox@16005 16
domcox@16005 17 # Rules to configure and make the package.
domcox@16005 18 compile_rules()
domcox@16005 19 {
pascal@20580 20 sed -i 's|gohostarch = "amd64"|gohostarch = "386"|' src/cmd/dist/unix.c
domcox@16005 21 cd $src/src
domcox@16005 22
domcox@16005 23 # Setting up environnment before building go.
domcox@16005 24 # For more information, see: http://golang.org/doc/install/source
domcox@16005 25
domcox@16005 26 # Go tree, binaries and scripts locations.
domcox@16005 27 export GOROOT_FINAL=/usr/lib/go
domcox@16005 28
domcox@16005 29 # Support all x86 chips (Pentium MMX or later)
domcox@16005 30 # or optionaly only Pentium 4/Opteron/Athlon 64 or later.
domcox@16005 31 export GO386=387 # Pentium MMX or later
domcox@16005 32 # export GO386=sse2 # Pentium 4/Opteron/Athlon 64 or later
domcox@16005 33
domcox@16005 34 # Target operating system (optional).
domcox@16005 35 export GOOS=linux
domcox@16005 36
domcox@16005 37 # Target compilation architecture.
domcox@16005 38 case $ARCH in
domcox@16005 39 x86_64)
domcox@16005 40 # A mature implementation. The compiler has an effective optimizer
domcox@16005 41 # (registerizer) and generates good code (although gccgo can do
domcox@16005 42 # noticeably better sometimes).
domcox@16005 43 export GOARCH="amd64" ;;
domcox@16005 44
domcox@16005 45 i486)
domcox@16005 46 # Comparable to the amd64
domcox@16005 47 export GOARCH="386" ;;
domcox@16005 48
domcox@16005 49 arm)
domcox@16005 50 # Supports Linux, FreeBSD and NetBSD binaries. Less widely used
domcox@16005 51 # than the other ports.
domcox@16005 52 export GOARCH="arm"
domcox@16005 53 # ARM11 (VFPv1) or better cores + cross-compiling.
domcox@16005 54 export GOARM=6 ;;
domcox@16005 55 esac
domcox@16005 56
domcox@16005 57 # Build go
domcox@16005 58 /bin/bash make.bash --no-banner
domcox@16005 59 }
domcox@16005 60
domcox@16005 61 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@16005 62 genpkg_rules()
domcox@16005 63 {
domcox@16045 64 mkdir -p $fs/usr/lib/go/src
domcox@16005 65 # bin
domcox@16005 66 cp -a $src/bin $fs/usr
domcox@16005 67 # go tree
domcox@16005 68 cp -a $src/pkg $fs/usr/lib/go
domcox@16005 69 # lib
domcox@16005 70 cp -a $src/lib $fs/usr/lib/go
domcox@16005 71 # include
domcox@16005 72 cp -a $src/include $fs/usr/lib/go
domcox@16045 73 # pkg
domcox@16045 74 cp -a $src/src/pkg $fs/usr/lib/go/src
domcox@16045 75 cp -a $src/src/cmd $fs/usr/lib/go/src
domcox@16045 76 cp -a $src/src/lib9 $fs/usr/lib/go/src
domcox@16005 77 }