wok-current annotate go/receipt @ rev 16895
qt4-phonon: del bdep
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Jul 14 15:10:46 2014 +0300 (2014-07-14) |
parents | 6c33dfc046bc |
children | b354f5852f7a |
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 { |
domcox@16005 | 20 cd $src/src |
domcox@16005 | 21 |
domcox@16005 | 22 # Setting up environnment before building go. |
domcox@16005 | 23 # For more information, see: http://golang.org/doc/install/source |
domcox@16005 | 24 |
domcox@16005 | 25 # Go tree, binaries and scripts locations. |
domcox@16005 | 26 export GOROOT_FINAL=/usr/lib/go |
domcox@16005 | 27 |
domcox@16005 | 28 # Support all x86 chips (Pentium MMX or later) |
domcox@16005 | 29 # or optionaly only Pentium 4/Opteron/Athlon 64 or later. |
domcox@16005 | 30 export GO386=387 # Pentium MMX or later |
domcox@16005 | 31 # export GO386=sse2 # Pentium 4/Opteron/Athlon 64 or later |
domcox@16005 | 32 |
domcox@16005 | 33 # Target operating system (optional). |
domcox@16005 | 34 export GOOS=linux |
domcox@16005 | 35 |
domcox@16005 | 36 # Target compilation architecture. |
domcox@16005 | 37 case $ARCH in |
domcox@16005 | 38 x86_64) |
domcox@16005 | 39 # A mature implementation. The compiler has an effective optimizer |
domcox@16005 | 40 # (registerizer) and generates good code (although gccgo can do |
domcox@16005 | 41 # noticeably better sometimes). |
domcox@16005 | 42 export GOARCH="amd64" ;; |
domcox@16005 | 43 |
domcox@16005 | 44 i486) |
domcox@16005 | 45 # Comparable to the amd64 |
domcox@16005 | 46 export GOARCH="386" ;; |
domcox@16005 | 47 |
domcox@16005 | 48 arm) |
domcox@16005 | 49 # Supports Linux, FreeBSD and NetBSD binaries. Less widely used |
domcox@16005 | 50 # than the other ports. |
domcox@16005 | 51 export GOARCH="arm" |
domcox@16005 | 52 # ARM11 (VFPv1) or better cores + cross-compiling. |
domcox@16005 | 53 export GOARM=6 ;; |
domcox@16005 | 54 esac |
domcox@16005 | 55 |
domcox@16005 | 56 # Build go |
domcox@16005 | 57 /bin/bash make.bash --no-banner |
domcox@16005 | 58 } |
domcox@16005 | 59 |
domcox@16005 | 60 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@16005 | 61 genpkg_rules() |
domcox@16005 | 62 { |
domcox@16045 | 63 mkdir -p $fs/usr/lib/go/src |
domcox@16005 | 64 # bin |
domcox@16005 | 65 cp -a $src/bin $fs/usr |
domcox@16005 | 66 # go tree |
domcox@16005 | 67 cp -a $src/pkg $fs/usr/lib/go |
domcox@16005 | 68 # lib |
domcox@16005 | 69 cp -a $src/lib $fs/usr/lib/go |
domcox@16005 | 70 # include |
domcox@16005 | 71 cp -a $src/include $fs/usr/lib/go |
domcox@16045 | 72 # pkg |
domcox@16045 | 73 cp -a $src/src/pkg $fs/usr/lib/go/src |
domcox@16045 | 74 cp -a $src/src/cmd $fs/usr/lib/go/src |
domcox@16045 | 75 cp -a $src/src/lib9 $fs/usr/lib/go/src |
domcox@16005 | 76 } |