mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 23:30:05 -07:00
Merge branch 'master' of github.com:kisslinux/repo
This commit is contained in:
commit
51117d59ea
51
extra/go/build
Executable file
51
extra/go/build
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
export GOARCH=amd64
|
||||
|
||||
[ -f /var/db/kiss/installed/go/manifest ] || {
|
||||
export GOROOT="$PWD/go1.4-bootstrap"
|
||||
export GOROOT_FINAL="$PWD/lib/go-bootstrap"
|
||||
|
||||
mkdir -p lib/go-bootstrap
|
||||
|
||||
cd "$GOROOT/src"
|
||||
bash ./make.bash
|
||||
cd ..
|
||||
cp -a bin pkg src ../lib/go-bootstrap
|
||||
cd ..
|
||||
}
|
||||
|
||||
export GOROOT_FINAL=/usr/lib/go
|
||||
|
||||
if [ -f /var/db/kiss/go/manifest ]; then
|
||||
export GOROOT_BOOTSTRAP=/usr/lib/go
|
||||
else
|
||||
export GOROOT_BOOTSTRAP="$PWD/lib/go-bootstrap"
|
||||
fi
|
||||
|
||||
export GOROOT="$PWD/go-current"
|
||||
|
||||
(
|
||||
cd "$GOROOT/src"
|
||||
bash make.bash --no-clean -v
|
||||
)
|
||||
|
||||
cd "$GOROOT"
|
||||
|
||||
mkdir -p "$1/usr/bin" "$1/usr/lib/go/bin" "$1/usr/share/doc/go"
|
||||
|
||||
for binary in go gofmt; do
|
||||
install -m755 "bin/$binary" "$1/usr/lib/go/bin/$binary"
|
||||
ln -s "/usr/lib/go/bin/$binary" "$1/usr/bin"
|
||||
done
|
||||
|
||||
cp -a pkg src lib "$1/usr/lib/go"
|
||||
cp -r doc misc "$1/usr/share/doc/go"
|
||||
|
||||
ln -s /usr/share/doc/go/doc "$1/usr/lib/go/doc"
|
||||
ln -s /usr/share/doc/go/misc "$1/usr/lib/go/misc"
|
||||
|
||||
rm -f "$1/usr/share/go/doc/articles/wiki/get.bin"
|
||||
rm -f "$1/usr/lib/go/pkg/tool/*/api"
|
||||
rm -rf "$1/usr/lib/go/pkg/bootstrap"
|
||||
rm -rf "$1/usr/lib/go/pkg/obj"
|
2
extra/go/checksums
Normal file
2
extra/go/checksums
Normal file
@ -0,0 +1,2 @@
|
||||
ab0e56ed9c4732a653ed22e232652709afbf573e710f56a07f7fdeca578d62fc go1.12.9.src.tar.gz
|
||||
f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 go1.4-bootstrap-20171003.tar.gz
|
1
extra/go/depends
Normal file
1
extra/go/depends
Normal file
@ -0,0 +1 @@
|
||||
bash make
|
0
extra/go/nostrip
Normal file
0
extra/go/nostrip
Normal file
2
extra/go/sources
Normal file
2
extra/go/sources
Normal file
@ -0,0 +1,2 @@
|
||||
https://golang.org/dl/go1.12.9.src.tar.gz go-current
|
||||
https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz go1.4-bootstrap
|
1
extra/go/version
Normal file
1
extra/go/version
Normal file
@ -0,0 +1 @@
|
||||
1.12.9 1
|
Loading…
Reference in New Issue
Block a user