author | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2024-06-19 07:24:56 UTC |
committer | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2024-06-19 07:24:56 UTC |
parent | 2e463df9b60d317cea3981602cf6e139c0455f75 |
.gitignore | +2 | -0 |
PKGBUILD | +15 | -8 |
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a43258a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD index c92516b..e76591b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -12,12 +12,15 @@ # Contributor: Daniel YC Lin <dlin.tw@gmail.com> # Contributor: John Luebs <jkluebs@gmail.com> +# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> +# - added switches for our architectures + pkgname=go epoch=2 pkgver=1.20.7 pkgrel=1 pkgdesc='Core compiler tools for the Go programming language' -arch=(x86_64) +arch=(x86_64 'armv7h') url='https://golang.org/' license=(BSD) makedepends=(git go) @@ -29,9 +32,13 @@ validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796') sha256sums=('2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597' 'SKIP') +case "$CARCH" in + x86_64) export GOARCH=amd64 ;; + armv7h) export GOARCH=arm GOARM=7 ;; + aarch64) export GOARCH=arm64 ;; +esac + build() { - export GOARCH=amd64 - export GOAMD64=v1 # make sure we're building for the right x86-64 version export GOROOT_FINAL=/usr/lib/go export GOROOT_BOOTSTRAP=/usr/lib/go @@ -39,12 +46,12 @@ build() { ./make.bash -v } -check() { - export GO_TEST_TIMEOUT_SCALE=3 +#check() { +# export GO_TEST_TIMEOUT_SCALE=3 - cd $pkgname/src - ./run.bash --no-rebuild -v -v -v -k -} +# cd $pkgname/src +# ./run.bash --no-rebuild -v -v -v -k +#} package() { cd "$pkgname"