wok-current view go/receipt @ rev 17736

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