This commit is contained in:
milisbir 2018-07-06 16:39:14 +02:00
parent 84b761cb34
commit 1465ad98d5
1 changed files with 7 additions and 7 deletions

View File

@ -32,13 +32,13 @@ export GOCACHE=off
done
cd $SRC/go
install -d "$PKG/usr/bin" "$PKG/usr/lib/go"
cp -a bin pkg src lib misc api "$PKG/usr/lib/go"
install -d "$PKG/usr/bin" "$PKG/usr/lib/go-$surum"
cp -a bin pkg src lib misc api "$PKG/usr/lib/go-$surum"
#cp -r doc/* "$PKG/usr/share/doc/go"
ln -sf /usr/lib/go/bin/go "$PKG/usr/bin/go"
ln -sf /usr/lib/go/bin/gofmt "$PKG/usr/bin/gofmt"
ln -sf /usr/lib/go-$surum/bin/go "$PKG/usr/bin/go-$surum"
ln -sf /usr/lib/go-$surum/bin/gofmt "$PKG/usr/bin/gofmt-$surum"
install -Dm644 LICENSE "$PKG/usr/share/licenses/go/LICENSE"
install -Dm644 VERSION "$PKG/usr/lib/go/VERSION"
rm -rf "$PKG/usr/lib/go/pkg/bootstrap"
rm -rf "$PKG/usr/lib/go/pkg/tool/*/api"
install -Dm644 VERSION "$PKG/usr/lib/go-$surum/VERSION"
rm -rf "$PKG/usr/lib/go-$surum/pkg/bootstrap"
rm -rf "$PKG/usr/lib/go-$surum/pkg/tool/*/api"
}