author | Alexander Rødseth
<xyproto@archlinux.org> 2012-05-05 13:13:38 UTC |
committer | Alexander Rødseth
<xyproto@archlinux.org> 2012-05-05 13:13:38 UTC |
parent | 1770fb13e2cea23e12ba3c242be70e4ff5e18cd1 |
PKGBUILD | +13 | -28 |
go => go.run | +0 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 12d147e..98e3dec 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,43 +7,28 @@ # Contributor: Daniel YC Lin <dlin.tw@gmail.com> pkgname=go -pkgver=1 -pkgrel=6 +pkgver=1.0.1 +pkgrel=1 epoch=2 pkgdesc='Google Go compiler and tools (release version)' arch=('x86_64' 'i686') url="http://golang.org/" license=('custom') -depends=('perl' 'ed' 'gawk' 'mercurial') +depends=('perl' 'ed' 'gawk') makedepends=('inetutils') options=('!strip' '!emptydirs') install=go.install -source=("$pkgname" +source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz" + "$pkgname.run" "$pkgname.sh") -sha1sums=('655754d95688294b0cf2334a1155432884f92859' +sha1sums=('fc8a6d6725f7f2bf7c94685c5fd0880c9b7f67f6' + '655754d95688294b0cf2334a1155432884f92859' 'a760c32cbad5a013f384a086efb3b8b8fd88794f') build() { - _hgroot="https://go.googlecode.com/hg/" - _hgrepo="release" - - cd "$srcdir" - - msg "Connecting to Mercurial server...." - if [[ -d $_hgrepo ]] ; then - cd $_hgrepo - hg pull -u - msg "The local files are updated." - else - hg clone $_hgroot $_hgrepo - fi - msg "Mercurial checkout done or server timeout" - - rm -rf "$srcdir/$_hgrepo-build" - cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" - cd "$srcdir/$_hgrepo-build" - - export GOROOT="$srcdir/$_hgrepo-build" + cd "$srcdir/$pkgname" + + export GOROOT="$srcdir/$pkgname" export GOOS_FINAL="/usr/lib/go" export GOOS=linux export GOBIN="$GOROOT/bin" @@ -51,12 +36,12 @@ build() { mkdir -p "$GOROOT/bin" cd "$GOROOT/src" - hg update release-branch.go$pkgver + . ./make.bash } package() { - cd "$srcdir/release-build" + cd "$srcdir/$pkgname" install -Dm644 LICENSE \ "$pkgdir/usr/share/licenses/go/LICENSE" @@ -102,7 +87,7 @@ package() { install $srcdir/go.sh $pkgdir/etc/profile.d/ mv "$pkgdir/usr/bin/go" "$pkgdir/usr/bin/go.elf" - install -Dm755 "$srcdir/go" "$pkgdir/usr/bin/go" + install -Dm755 "$srcdir/go.run" "$pkgdir/usr/bin/go" } # vim:set ts=2 sw=2 et: diff --git a/go b/go.run similarity index 100% rename from go rename to go.run