diff options
Diffstat (limited to 'community/go/PKGBUILD')
-rw-r--r-- | community/go/PKGBUILD | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index ab6e73e97..941892808 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 70799 2012-05-16 17:49:57Z arodseth $ +# $Id: PKGBUILD 72413 2012-06-13 22:11:36Z arodseth $ # Maintainer: Vesa Kaihlavirta <vegai@iki.fi> # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Rémy Oudompheng <remy@archlinux.org> @@ -10,7 +10,7 @@ pkgname=go pkgver=1.0.1 -pkgrel=5 +pkgrel=6 epoch=2 pkgdesc='Google Go compiler and tools (release version)' arch=('x86_64' 'i686') @@ -20,10 +20,11 @@ depends=('perl' 'gawk') makedepends=('inetutils') options=('!strip' '!emptydirs') install=go.install +backup=('usr/lib/go/bin') source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz" "$pkgname.sh") -sha1sums=('fc8a6d6725f7f2bf7c94685c5fd0880c9b7f67f6' - '0e8c7edc9d788be3518367bf04bdb5ff8b6bbdcf') +sha256sums=('29cdba7bc909df7091d81f52049de023502b5b3351cd206094f2c2d9961c0315' + 'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892') build() { cd "$srcdir/$pkgname" @@ -91,6 +92,18 @@ package() { # For packages that source /etc/profile.d/go.sh install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/etc/profile.d/$pkgname.sh" + # This is to make go get code.google.com/p/go-tour/gotour and + # then running the gotour executable work out of the box. + # + # Also, /usr/bin is the place for system-wide executables, + # not /usr/lib/go/bin. Users should use different paths by + # setting the appropriate environment variables. + # + ln -sf /usr/bin "$pkgdir/usr/lib/go/bin" + + # For godoc + install -Dm644 favicon.ico "$pkgdir/usr/lib/go/favicon.ico" + rm -f "$pkgdir/usr/share/go/doc/articles/wiki/get.bin" } |