wok rev 16005
Add go lang (1.2.1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Mar 04 13:26:16 2014 +0100 (2014-03-04) |
parents | 1c4633c79149 |
children | c5260802b1a2 |
files | go/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/go/receipt Tue Mar 04 13:26:16 2014 +0100 1.3 @@ -0,0 +1,72 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="go" 1.7 +VERSION="1.2.1" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Go programming language (R.Griesemer R.Pike K.Thompson)" 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +LICENSE="BSD" 1.12 +WEB_SITE="http://www.golang.org" 1.13 +TARBALL="$PACKAGE$VERSION.src.tar.gz" 1.14 +WGET_URL="https://go.googlecode.com/files/$TARBALL" 1.15 +TAGS="go" 1.16 + 1.17 +DEPENDS="" 1.18 +BUILD_DEPENDS="bash bison make ed" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src/src 1.24 + 1.25 + # Setting up environnment before building go. 1.26 + # For more information, see: http://golang.org/doc/install/source 1.27 + 1.28 + # Go tree, binaries and scripts locations. 1.29 + export GOROOT_FINAL=/usr/lib/go 1.30 + 1.31 + # Support all x86 chips (Pentium MMX or later) 1.32 + # or optionaly only Pentium 4/Opteron/Athlon 64 or later. 1.33 + export GO386=387 # Pentium MMX or later 1.34 + # export GO386=sse2 # Pentium 4/Opteron/Athlon 64 or later 1.35 + 1.36 + # Target operating system (optional). 1.37 + export GOOS=linux 1.38 + 1.39 + # Target compilation architecture. 1.40 + case $ARCH in 1.41 + x86_64) 1.42 + # A mature implementation. The compiler has an effective optimizer 1.43 + # (registerizer) and generates good code (although gccgo can do 1.44 + # noticeably better sometimes). 1.45 + export GOARCH="amd64" ;; 1.46 + 1.47 + i486) 1.48 + # Comparable to the amd64 1.49 + export GOARCH="386" ;; 1.50 + 1.51 + arm) 1.52 + # Supports Linux, FreeBSD and NetBSD binaries. Less widely used 1.53 + # than the other ports. 1.54 + export GOARCH="arm" 1.55 + # ARM11 (VFPv1) or better cores + cross-compiling. 1.56 + export GOARM=6 ;; 1.57 + esac 1.58 + 1.59 + # Build go 1.60 + /bin/bash make.bash --no-banner 1.61 +} 1.62 + 1.63 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.64 +genpkg_rules() 1.65 +{ 1.66 + mkdir -p $fs/usr/lib/go 1.67 + # bin 1.68 + cp -a $src/bin $fs/usr 1.69 + # go tree 1.70 + cp -a $src/pkg $fs/usr/lib/go 1.71 + # lib 1.72 + cp -a $src/lib $fs/usr/lib/go 1.73 + # include 1.74 + cp -a $src/include $fs/usr/lib/go 1.75 +}