Updated git-lfs to use go-tools + go on ppc64

This commit is contained in:
bobpaul 2025-02-17 00:53:06 -05:00
parent 2a22a04440
commit c1e4dc1ddb
3 changed files with 10 additions and 1 deletions

View File

@ -20,6 +20,7 @@ pkgbase = git-lfs
sha256sums = SKIP
makedepends_x86_64 = go-tools
makedepends_powerpc64le = go-tools
makedepends_powerpc64 = go-tools
makedepends_riscv64 = go-tools
pkgname = git-lfs

View File

@ -10,6 +10,7 @@ url="https://git-lfs.github.com"
license=('MIT')
#FIXME: gcc-go doesnt build >=3.6.0
makedepends=('go' 'ruby-ronn' 'asciidoctor')
makedepends_powerpc64=('go-tools')
makedepends_powerpc64le=('go-tools')
makedepends_riscv64=('go-tools')
makedepends_x86_64=('go-tools')
@ -21,11 +22,17 @@ sha256sums=('SKIP')
build(){
cd "$pkgname"
if [ "${CARCH}" == "powerpc64" ]; then
LINKMODE=internal
else
LINKMODE=external
BUILDMODE='-buildmode=pie'
fi
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw -ldflags=-linkmode=external"
export GOFLAGS="${BUILDMODE} -trimpath -modcacherw -ldflags=-linkmode=${LINKMODE}"
go mod vendor
go generate ./commands
go build .

View File

@ -5,6 +5,7 @@ pkgbase = go-tools
epoch = 4
url = https://golang.org/
arch = x86_64
arch = powerpc64
arch = powerpc64le
arch = powerpc64
arch = riscv64