From 8e5a0a990a12a59cadb687cae22a1960fce1660b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Feb 2013 00:08:35 -0800 Subject: Thu Feb 7 00:08:35 PST 2013 --- community/go/PKGBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'community/go/PKGBUILD') diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index 8954a068a..b874f8a2e 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 82502 2013-01-19 17:36:30Z arodseth $ +# $Id: PKGBUILD 83899 2013-02-06 13:13:38Z arodseth $ # Maintainer: Vesa Kaihlavirta # Maintainer: Alexander Rødseth # Contributor: Rémy Oudompheng @@ -10,10 +10,10 @@ pkgname=go pkgver=1.0.3 -pkgrel=5 +pkgrel=6 epoch=2 pkgdesc='Google Go compiler and tools' -arch=('x86_64' 'i686' 'armv6h') +arch=('x86_64' 'i686') url='http://golang.org/' license=('custom') depends=('perl' 'gawk') @@ -22,12 +22,12 @@ options=('!strip' '!emptydirs') install=go.install backup=('usr/lib/go/bin') source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz" - $pkgname.sh) + "$pkgname.sh") sha256sums=('7fba3533d172f13629d3d8a79e57c620632b0bd075abe11d7698b338be0ae3df' 'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892') build() { - cd $srcdir/$pkgname + cd "$srcdir/$pkgname" if [ "$CARCH" == 'x86_64' ]; then export GOARCH=amd64 @@ -52,7 +52,7 @@ build() { } check() { - cd $srcdir/$pkgname + cd "$srcdir/$pkgname" if [ "$CARCH" == 'x86_64' ]; then export GOARCH=amd64 @@ -62,15 +62,15 @@ check() { export GOARCH=arm fi - export GOROOT=$srcdir/$pkgname - export PATH=$srcdir/$pkgname/bin:$PATH + export GOROOT="$srcdir/$pkgname" + export PATH="$srcdir/$pkgname/bin:$PATH" # TestSimpleMulticastListener will fail in standard chroot. cd src && bash run.bash --no-rebuild || true } package() { - cd $srcdir/$pkgname + cd "$srcdir/$pkgname" install -Dm644 LICENSE \ $pkgdir/usr/share/licenses/go/LICENSE @@ -106,8 +106,10 @@ package() { # Remove object files from target src dir find $pkgdir/usr/lib/go/src/ -type f -name '*.[ao]' -delete + # Fix for FS#32813 find $pkgdir -type f -name sql.go -exec chmod -x {} \; + # Remove all executable source files find $pkgdir/usr/lib/go/src/pkg -type f -executable -delete @@ -130,6 +132,9 @@ package() { rm -f $pkgdir/usr/share/go/doc/articles/wiki/get.bin install -Dm644 VERSION $pkgdir/usr/lib/go/VERSION + + # Clean up + rm -r "$pkgdir/usr/bin/linux_arm" } # vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf