author | Morten Linderud
<foxboron@archlinux.org> 2021-11-02 20:57:42 UTC |
committer | Morten Linderud
<foxboron@archlinux.org> 2021-11-02 20:57:42 UTC |
parent | 66444e16bccbcc0a31e4ef87730862068b0d33a6 |
PKGBUILD | +1 | -6 |
diff --git a/PKGBUILD b/PKGBUILD index 779f8b5..cb7c833 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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 @@ package() { 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 @@ package() { # 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" }