summaryrefslogtreecommitdiff
path: root/community/go/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/go/PKGBUILD')
-rw-r--r--community/go/PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD
index 6221c2218..4790cc4ee 100644
--- a/community/go/PKGBUILD
+++ b/community/go/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Christian Himpel <chressie at gmail dot com>
pkgname=go
-pkgver=r59
+pkgver=r60
pkgrel=1
epoch=1
pkgdesc='Google Go compiler and tools (release version)'
@@ -83,6 +83,10 @@ package() {
install -Dm644 src/Make.* $pkgdir/usr/lib/go/src
+ # remove object files from target src dir
+ find $pkgdir/usr/lib/go/src/ -type f -name '*.[ao]' -delete
+ find $pkgdir/usr/lib/go/src/pkg -type f -executable -delete
+
# Headers for C modules
install -Dm644 src/pkg/runtime/runtime.h $pkgdir/usr/lib/go/src/pkg/runtime/runtime.h
install -Dm644 src/pkg/runtime/cgocall.h $pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h