Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : golang | name : golang | ||||
| version : 1.19.5 | version : 1.20.3 | ||||
| release : 95 | release : 96 | ||||
| homepage : https://golang.org | homepage : https://golang.org | ||||
| source : | source : | ||||
| - https://golang.org/dl/go1.19.5.src.tar.gz : 8e486e8e85a281fc5ce3f0bedc5b9d2dbf6276d7db0b25d3ec034f313da0375f | - https://golang.org/dl/go1.20.3.src.tar.gz : e447b498cde50215c4f7619e5124b0fc4e25fb5d16ea47271c47f278e7aa763a | ||||
| license : BSD-3-Clause | license : BSD-3-Clause | ||||
| summary : The Go programming language | summary : The Go programming language | ||||
| description: Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. | description: Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. | ||||
| autodep : no | autodep : no | ||||
| strip : no | strip : no | ||||
| component : programming | component : programming | ||||
| builddeps : | builddeps : | ||||
| - binutils-gold # Needed for src/cmd/go/note_test.go | - binutils-gold # Needed for src/cmd/go/note_test.go | ||||
| - llvm-clang # Needed for src/cmd/link/cgo_test.go | - llvm-clang # Needed for src/cmd/link/cgo_test.go | ||||
| - golang | - golang | ||||
| rundeps : | rundeps : | ||||
| - glibc | - glibc | ||||
| replaces : | replaces : | ||||
| - golang-binary | - golang-binary | ||||
| environment: | | environment: | | ||||
| export GOROOT_BOOTSTRAP="%libdir%/golang" | export GOROOT_BOOTSTRAP="%libdir%/golang" | ||||
| export GOROOT_FINAL="%libdir%/golang" | export GOROOT_FINAL="%libdir%/golang" | ||||
| setup : | | |||||
| %apply_patches | |||||
| build : | | build : | | ||||
| # Build and run test suites | # Build and run test suites | ||||
| pushd src | pushd src | ||||
| bash ./all.bash | bash ./all.bash | ||||
| # Install into this working tree | # Install into this working tree | ||||
| popd | popd | ||||
| GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared std | GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared std | ||||
| install : | | install : | | ||||
| mkdir -p $installdir/%libdir%/golang | mkdir -p $installdir/%libdir%/golang | ||||
| mkdir -p $installdir/usr/bin | mkdir -p $installdir/usr/bin | ||||
| cp -a * $installdir/%libdir%/golang | cp -a * $installdir/%libdir%/golang | ||||
| chmod +x $installdir/%libdir%/golang/bin/{go,gofmt} | chmod +x $installdir/%libdir%/golang/bin/{go,gofmt} | ||||
| ln -s %libdir%/golang/bin/go $installdir/usr/bin/go | ln -s %libdir%/golang/bin/go $installdir/usr/bin/go | ||||
| ln -s %libdir%/golang/bin/gofmt $installdir/usr/bin/gofmt | ln -s %libdir%/golang/bin/gofmt $installdir/usr/bin/gofmt | ||||
| rm -rf $installdir/usr/lib64/golang/pkg/obj | rm -rf $installdir/usr/lib64/golang/pkg/obj | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.