diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-22 16:53:52 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-22 16:53:52 +0800 |
| commit | 0701a2cd7c2f86b8e51afdfe635855bf5e0bcc1a (patch) | |
| tree | 258e92c20a59f590b855e649d46955f640d960db /repos/extra/go/abuild | |
| parent | adada347b8e07631f573b8ea4f05cb2c77f7a781 (diff) | |
| download | alicelinux-0701a2cd7c2f86b8e51afdfe635855bf5e0bcc1a.tar.gz alicelinux-0701a2cd7c2f86b8e51afdfe635855bf5e0bcc1a.zip | |
go: added own posix shell script, drop bash depends
Diffstat (limited to 'repos/extra/go/abuild')
| -rw-r--r-- | repos/extra/go/abuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/repos/extra/go/abuild b/repos/extra/go/abuild index 68d8f2de..1f72f58d 100644 --- a/repos/extra/go/abuild +++ b/repos/extra/go/abuild @@ -1,8 +1,9 @@ name=go version=1.24.0 -release=1 +release=2 source="https://${name}lang.org/dl/${name}${version}.src.tar.gz - https://golang.org/dl/go${version}.linux-amd64.tar.gz::noextract" + https://golang.org/dl/go${version}.linux-amd64.tar.gz::noextract + make.sh" build() { if [ ! "$(which go)" ]; then @@ -14,15 +15,16 @@ build() { fi export GOCACHE=$SRC/.go - export GOROOT_FINAL=/usr/lib/go + export GOROOT_FINAL=/usr/lib/go - cd src - ./make.bash + cd src + cp $SRC/make.sh . + ./make.sh - install -d $PKG/usr/lib - mv $SRC/go $PKG/usr/lib/ + install -d $PKG/usr/lib + mv $SRC/go $PKG/usr/lib/ - install -d $PKG/usr/bin - ln -s /usr/lib/go/bin/go $PKG/usr/bin/ - ln -s /usr/lib/go/bin/gofmt $PKG/usr/bin/ + install -d $PKG/usr/bin + ln -s /usr/lib/go/bin/go $PKG/usr/bin/ + ln -s /usr/lib/go/bin/gofmt $PKG/usr/bin/ } |