Matt Housh
cf42cdbc3e
Fixes numerous CVEs, see the following for info: https://github.com/golang/go/issues?q=milestone%3AGo1.22.1+label%3ACherryPickApproved https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45289 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45290 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24783 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24784 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24785 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24786
39 lines
981 B
Plaintext
39 lines
981 B
Plaintext
# Description: The Go Programming Language
|
|
# URL: https://go.dev/
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
name=go
|
|
version=1.22.1
|
|
release=1
|
|
source=(https://golang.org/dl/go${version}.src.tar.gz \
|
|
https://golang.org/dl/go${version}.linux-amd64.tar.gz)
|
|
|
|
unpack_source() {
|
|
install -d $SRC/go${version}
|
|
bsdtar -xf $PKGMK_SOURCE_DIR/go${version}.linux-amd64.tar.gz \
|
|
-C $SRC/go${version} --strip-components=1
|
|
bsdtar -xf $PKGMK_SOURCE_DIR/go${version}.src.tar.gz \
|
|
-C $SRC
|
|
}
|
|
|
|
build() {
|
|
export GOCACHE=$SRC/go-build
|
|
export GOROOT_BOOTSTRAP=$SRC/go${version}
|
|
export GOROOT_FINAL=/usr/lib/go
|
|
|
|
cd go/src
|
|
./make.bash
|
|
|
|
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/
|
|
|
|
find $PKG \( -name "README*" -o -name "AUTHORS" -o -name "TODO" \) -delete
|
|
rm $PKG/usr/lib/go/src/*.bat
|
|
}
|
|
|
|
# vim: set ts=4 et:
|