go: clean up after install

This commit is contained in:
Jürgen Buchmüller 2018-02-08 17:46:31 +01:00
parent 493b865136
commit 3932e89010
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ _go_targetarch() {
}
do_extract() {
rm -rf "${XBPS_BUILDDIR}/go_bootstrap"
mkdir "${XBPS_BUILDDIR}/go_bootstrap"
tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${_bootstrap_version}.src.tar.gz" \
-C "${XBPS_BUILDDIR}/go_bootstrap" --strip-components=1
@ -146,6 +147,7 @@ do_install() {
rm -f ${DESTDIR}/usr/share/go/doc/articles/wiki/get.bin
rm -f ${DESTDIR}/usr/lib/go/pkg/tool/*/api
rm -rf "${XBPS_BUILDDIR}/go_bootstrap"
}
go-cross-linux_package() {