mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/go to 1.17.2-2
This commit is contained in:
parent
59ca719c37
commit
078e6bba81
1 changed files with 1 additions and 6 deletions
|
@ -17,7 +17,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/'
|
||||
|
@ -70,9 +70,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"
|
||||
|
||||
|
@ -86,8 +83,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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue