[arch-commits] Commit in go/trunk (PKGBUILD)

Alexander Rødseth arodseth at nymeria.archlinux.org
Wed Oct 30 14:46:45 UTC 2013


    Date: Wednesday, October 30, 2013 @ 15:46:45
  Author: arodseth
Revision: 99612

Keep static libraries

Modified:
  go/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-30 13:59:02 UTC (rev 99611)
+++ PKGBUILD	2013-10-30 14:46:45 UTC (rev 99612)
@@ -10,7 +10,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')
@@ -18,7 +18,7 @@
 license=('custom')
 depends=('perl' 'gawk')
 makedepends=('inetutils')
-options=('!strip')
+options=('!strip' 'staticlibs')
 install="$pkgname.install"
 backup=('usr/lib/go/bin')
 
@@ -35,12 +35,16 @@
 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
@@ -59,7 +63,7 @@
 }
 
 check() {
-  cd "$srcdir/$pkgname"
+  cd "$pkgname"
 
   export GO386=387
 
@@ -73,12 +77,12 @@
   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"




More information about the arch-commits mailing list