[arch-commits] Commit in go/trunk (PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Tue Nov 2 20:57:43 UTC 2021
Date: Tuesday, November 2, 2021 @ 20:57:42
Author: foxboron
Revision: 1035413
upgpkg: go 2:1.17.2-2 - Properly fix testdata
Modified:
go/trunk/PKGBUILD
----------+
PKGBUILD | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-02 20:44:37 UTC (rev 1035412)
+++ PKGBUILD 2021-11-02 20:57:42 UTC (rev 1035413)
@@ -14,7 +14,7 @@
pkgname=go
epoch=2
pkgver=1.17.2
-pkgrel=1
+pkgrel=2
pkgdesc='Core compiler tools for the Go programming language'
arch=(x86_64)
url='https://golang.org/'
@@ -61,9 +61,6 @@
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go" \
"$pkgdir/usr/lib/go/pkg/linux_amd64_"{dynlink,race}
- # TODO: Make split package for source files?
- # This saves around 100 MB.
- # Rest of the size is from the duplicate _race and _dynlib .a files
cp -a bin pkg src lib misc api test "$pkgdir/usr/lib/go"
cp -r doc/* "$pkgdir/usr/share/doc/go"
@@ -77,8 +74,6 @@
# TODO: Figure out if really needed
rm -rf "$pkgdir"/usr/lib/go/pkg/obj/go-build/*
- find "$pkgdir/usr/lib/go" -name "testdata" -type d -prune -exec rm -rf "{}" \;
- find "$pkgdir/usr/lib/go" -name "*_test.go" -exec rm -rf "{}" \;
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list