mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/go to 1.2-2
This commit is contained in:
parent
5446c70403
commit
fa09b95b7a
3 changed files with 12 additions and 15 deletions
|
@ -7,6 +7,7 @@
|
|||
# Contributor: Christian Himpel <chressie@gmail.com>
|
||||
# Contributor: Mike Rosset <mike.rosset@gmail.com>
|
||||
# Contributor: Daniel YC Lin <dlin.tw@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - added switches for our architectures
|
||||
# ALARM: Alexander Rødseth <rodseth@gmail.com>
|
||||
|
@ -14,7 +15,7 @@
|
|||
|
||||
pkgname=go
|
||||
pkgver=1.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
epoch=2
|
||||
pkgdesc='Compiler and tools for the Go programming language from Google'
|
||||
url='http://golang.org/'
|
||||
|
@ -25,10 +26,8 @@ options=('!strip' 'staticlibs')
|
|||
optdepends=('liteide: IDE for editing and building projects written in Go')
|
||||
install="$pkgname.install"
|
||||
backup=('usr/lib/go/bin')
|
||||
source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz"
|
||||
"$pkgname.sh")
|
||||
sha256sums=('9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4'
|
||||
'36202a833faeb8ea10760557a1e221025288480bdeebf776c8b610014aadc181')
|
||||
source=("http://go.googlecode.com/files/${pkgname}$pkgver.src.tar.gz")
|
||||
sha256sums=('9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4')
|
||||
|
||||
build() {
|
||||
cd "$pkgname/src"
|
||||
|
@ -61,7 +60,6 @@ check() {
|
|||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
export GOROOT="$srcdir/$pkgname"
|
||||
|
||||
export GOROOT="$srcdir/$pkgname"
|
||||
|
||||
|
@ -113,9 +111,6 @@ package() {
|
|||
install -Dm644 src/pkg/runtime/cgocall.h \
|
||||
"$pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h"
|
||||
|
||||
# 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.
|
||||
ln -sf /usr/bin "$pkgdir/usr/lib/go/bin"
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
post_install() {
|
||||
# Friendly message for new users
|
||||
echo "Example use of the \"go\" tool:"
|
||||
echo ' mkdir ~/mygoproject'
|
||||
echo ' export GOPATH=~/mygoproject'
|
||||
echo ' export PATH=\$PATH:\$GOPATH/bin'
|
||||
echo ' go get github.com/codegangsta/martini'
|
||||
echo
|
||||
echo 'Example use of the "go" tool:'
|
||||
echo
|
||||
echo ' mkdir ~/go'
|
||||
echo ' export GOPATH=~/go'
|
||||
echo ' export PATH=$PATH:~/go/bin'
|
||||
echo ' go get code.google.com/p/go-tour/gotour'
|
||||
echo
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
export GOROOT=/usr/lib/go
|
Loading…
Reference in a new issue