29 lines
694 B
Plaintext
29 lines
694 B
Plaintext
# Description: The Go Programming Language
|
|
# URL: http://golang.org/
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
|
# Depends on: bash bison gcc make ed
|
|
|
|
name=go
|
|
version=r4604
|
|
release=1
|
|
source=(http://crux.nu/~sepen/distfiles/$name-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
install -d $PKG/usr/bin
|
|
export GOROOT=$SRC/$name-$version
|
|
export GOARCH=386 GOOS=linux GOBIN=$PKG/usr/bin
|
|
|
|
(echo '#!/bin/sh'; echo 'exec '$MAKE' "$@"') > $GOBIN/gomake
|
|
chmod 0755 $GOBIN/gomake
|
|
|
|
cd $GOROOT/src
|
|
sed "s|CFLAGS=|CFLAGS=$CFLAGS |" -i Make.conf
|
|
sed 's|&& which quietgcc||' -i make.bash
|
|
|
|
export PATH=$GOBIN:$PATH
|
|
./all.bash
|
|
}
|