remove go1.19

This commit is contained in:
bgme 2023-11-05 09:27:28 +08:00
parent 8dcda60f5e
commit 88300c4be3
6 changed files with 6 additions and 95 deletions

View file

@ -1,70 +0,0 @@
# Maintainer: Arturo Penen <apenen@gmail.com>
pkgname=go1.19
pkgver=1.19.5
pkgrel=2
pkgdesc='Core compiler tools for the Go programming language v1.19'
arch=(x86_64)
url='https://golang.org/'
license=(BSD)
makedepends=(git go perl)
options=(!strip staticlibs)
source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc})
validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796')
sha256sums=('8e486e8e85a281fc5ce3f0bedc5b9d2dbf6276d7db0b25d3ec034f313da0375f'
'SKIP')
build() {
export GOARCH=amd64
export GOROOT_FINAL=/usr/lib/go1.19
export GOROOT_BOOTSTRAP=/usr/lib/go1.19
export GOPATH="$srcdir/"
export GOROOT="$srcdir/go"
export GOBIN="$GOROOT/bin"
cd "$GOROOT/src"
./make.bash --no-clean -v
PATH="$GOBIN:$PATH" go install -v -race std
PATH="$GOBIN:$PATH" go install -v -buildmode=shared std
}
check() {
export GOARCH=amd64
export GOROOT_FINAL=/usr/lib/go1.19
export GOROOT_BOOTSTRAP=/usr/lib/go1.19
export GOROOT="$srcdir/go"
export GOBIN="$GOROOT/bin"
export PATH="$GOBIN:$PATH"
export GO_TEST_TIMEOUT_SCALE=2
cd $GOROOT/src
rm os/signal/signal_cgo_test.go # TODO: There is a bug somewhere.
# Should only affect containers
# so lets just say No.
./run.bash --no-rebuild -v -v -v -k
}
package() {
export GOROOT="$srcdir/go"
cd $GOROOT
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go1.19" "$pkgdir/usr/share/doc/go1.19"
cp -a bin pkg src lib misc api test "$pkgdir/usr/lib/go1.19"
cp -r doc/* "$pkgdir/usr/share/doc/go1.19"
ln -sf /usr/lib/go1.19/bin/go "$pkgdir/usr/bin/go1.19"
ln -sf /usr/lib/go1.19/bin/gofmt "$pkgdir/usr/bin/gofmt1.19"
ln -sf /usr/share/doc/go1.19 "$pkgdir/usr/lib/go1.19/doc"
install -Dm644 VERSION "$pkgdir/usr/lib/go1.19/VERSION"
rm -rf "$pkgdir/usr/lib/go1.19/pkg/bootstrap" "$pkgdir/usr/lib/go1.19/pkg/tool/*/api"
# TODO: Figure out if really needed
rm -rf "$pkgdir"/usr/lib/go1.19/pkg/obj/go-build/*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: ts=2 sw=2 et

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: go1.19

View file

@ -2,12 +2,12 @@
pkgname=sing-geoip
pkgver=20231012
pkgrel=1
pkgrel=2
pkgdesc='sing-geoip database'
arch=('any')
url="https://github.com/SagerNet/sing-geoip"
license=('custom:sing-geoip')
makedepends=('git' 'go1.19' 'jq')
makedepends=('git' 'go' 'jq')
source=("git+https://github.com/SagerNet/sing-geoip.git")
sha256sums=('SKIP')
@ -19,7 +19,7 @@ build() {
export NO_SKIP=true
cd "${srcdir}/${pkgname}"
go1.19 run -v .
go run -v .
}
package() {

View file

@ -2,9 +2,6 @@ maintainers:
- github: yingziwu
email: i@bgme.me
repo_depends:
- go1.19
build_prefix: extra-x86_64
pre_build: vcs_update

View file

@ -2,12 +2,12 @@
pkgname=sing-geosite
pkgver=20231031055637
pkgrel=1
pkgrel=2
pkgdesc='sing-geosite database'
arch=('any')
url="https://github.com/SagerNet/sing-geosite"
license=('custom:sing-geosite')
makedepends=('git' 'go1.19' 'jq')
makedepends=('git' 'go' 'jq')
source=("git+https://github.com/SagerNet/sing-geosite.git")
sha256sums=('SKIP')
@ -19,7 +19,7 @@ build() {
export NO_SKIP=true
cd "${srcdir}/${pkgname}"
go1.19 run -v .
GOTOOLCHAIN=go1.20.10 go run -v .
}
package() {

View file

@ -2,9 +2,6 @@ maintainers:
- github: yingziwu
email: i@bgme.me
repo_depends:
- go1.19
build_prefix: extra-x86_64
pre_build: vcs_update