diff options
author | Javier Domingo Cansino | 2022-03-01 16:42:42 +0100 |
---|---|---|
committer | Javier Domingo Cansino | 2022-03-01 16:42:42 +0100 |
commit | d3d9d760daeef385f1aa3da89432bd4c873314eb (patch) | |
tree | 2e2803aa367320e1c8ee1c4cd8f5d1481e14edf5 | |
parent | 89a40ff21ef032020efc48c7d482bdb903bd9aa6 (diff) | |
download | aur-helmsman-git.tar.gz |
Upgrade build scripts to 3.8 release using go mod
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 10 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = helmsman-git pkgdesc = Helmsman upstream - pkgver = 1.8.1.r8.gbe24069 + pkgver = 3.8.1 pkgrel = 1 url = https://github.com/Praqma/helmsman arch = x86_64 @@ -13,4 +13,3 @@ pkgbase = helmsman-git md5sums = SKIP pkgname = helmsman-git - @@ -1,7 +1,7 @@ # Maintainer: Javier Domingo Cansino <javierdo1@gmail.com> pkgname=helmsman-git -pkgver=1.8.1.r8.gbe24069 pkgrel=1 +pkgver=3.8.1 pkgdesc="Helmsman upstream" arch=('x86_64') url="https://github.com/Praqma/helmsman" @@ -24,15 +24,20 @@ prepare() { build() { cd "$srcdir/${pkgname%-git}" - GOPATH="$srcdir" go get -fix -v -x ${_gourl} + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build ./cmd/... } check() { cd "$srcdir/${pkgname%-git}" - GOPATH="$GOPATH:$srcdir" go test -v -x ${_gourl} + go test ./... } package() { mkdir -p "$pkgdir/usr/bin" - install -p -m755 "$srcdir/bin/helmsman" "$pkgdir/usr/bin" + install -p -m755 "$srcdir/helmsman/helmsman" "$pkgdir/usr/bin" } |