summaryrefslogtreecommitdiff
path: root/go/Pkgfile
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@crux.nu>2009-12-08 13:22:26 +0100
committerJose V Beneyto <sepen@crux.nu>2009-12-08 13:22:26 +0100
commit7a7f32ec7a48eeb0c63e5b00f3d46a68adc209b4 (patch)
treef759ddec94f9ae11d070e1bbe18cce72ce7acc72 /go/Pkgfile
parent1fe0ad655bdd0d56025c86c32d113b2a454de08e (diff)
downloadcontrib-7a7f32ec7a48eeb0c63e5b00f3d46a68adc209b4.tar.gz
contrib-7a7f32ec7a48eeb0c63e5b00f3d46a68adc209b4.tar.xz
go: initial import
Diffstat (limited to 'go/Pkgfile')
-rw-r--r--go/Pkgfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/go/Pkgfile b/go/Pkgfile
new file mode 100644
index 000000000..62cd18e72
--- /dev/null
+++ b/go/Pkgfile
@@ -0,0 +1,28 @@
+# 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=r4108
+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
+}

Generated by cgit