git » go-1.20.git » commit ee7e3bd

Keep static libraries

author Alexander Rødseth
2013-10-30 14:46:45 UTC
committer Alexander Rødseth
2013-10-30 14:46:45 UTC
parent 382cc236ad420a19d296f9bd76118c0e6153fd02

Keep static libraries

PKGBUILD +12 -8

diff --git a/PKGBUILD b/PKGBUILD
index 6be938d..c5cffd3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
 
 pkgname=go
 pkgver=1.1.2
-pkgrel=2
+pkgrel=3
 epoch=2
 pkgdesc='Compiler and tools for the Go programming language from Google'
 arch=('x86_64' 'i686')
@@ -17,7 +17,7 @@ url='http://golang.org/'
 license=('custom')
 depends=('perl' 'gawk')
 makedepends=('inetutils')
-options=('!strip')
+options=('!strip' 'staticlibs')
 install="$pkgname.install"
 backup=('usr/lib/go/bin')
 
@@ -34,12 +34,16 @@ else
 fi
 
 build() {
-  cd "$srcdir/$pkgname/src"
+  cd "$pkgname/src"
 
   export GOROOT_FINAL=/usr/lib/go
 
-  # We don't support SSE2 for i686, since many i686 CPUs don't have that.
-  # Build this package manually, build Go from AUR or use x86_64 instead.
+  #
+  # Arch Linux doesn't support SSE2 for i686.
+  #
+  # Use "go-sse2" from AUR if you have am i686 CPU that supports SSE2.
+  # It is highly likely that it does, and the SSE2 version is _a lot_ faster.
+  #
   export GO386=387
 
   # Enable ARM crosscompilation for linux
@@ -58,7 +62,7 @@ build() {
 }
 
 check() {
-  cd "$srcdir/$pkgname"
+  cd "$pkgname"
 
   export GO386=387
 
@@ -72,12 +76,12 @@ check() {
   export GOROOT="$srcdir/$pkgname"
   export PATH="$srcdir/$pkgname/bin:$PATH"
 
-  # TestSimpleMulticastListener will fail in standard chroot.
+  # TestSimpleMulticastListener will fail in standard chroot
   cd src && bash run.bash --no-rebuild || true
 }
 
 package() {
-  cd "$srcdir/$pkgname"
+  cd "$pkgname"
 
   install -Dm644 LICENSE \
     "$pkgdir/usr/share/licenses/go/LICENSE"