[arch-commits] Commit in fluxctl/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sat Jun 13 02:55:11 UTC 2020
Date: Saturday, June 13, 2020 @ 02:55:10
Author: shibumi
Revision: 642691
upgpkg: fluxctl 1.19.0-2 fix go flags
Modified:
fluxctl/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-13 02:41:04 UTC (rev 642690)
+++ PKGBUILD 2020-06-13 02:55:10 UTC (rev 642691)
@@ -3,7 +3,7 @@
pkgname=fluxctl
_pkgname=flux
pkgver=1.19.0
-pkgrel=1
+pkgrel=2
pkgdesc="Controller for the GitOps Kubernetes operator flux"
arch=('x86_64')
url="https://github.com/fluxcd/flux"
@@ -14,23 +14,23 @@
sha512sums=('4bd71a78ac5931d25b964b8a5afe0c7ede65277b247ffb1629792d7e48d9896c3920966b9765a8e018d1a7361042544e364eff80d5fe145a4305a8d786c93bfb')
changelog=CHANGELOG.md
-build(){
+build() {
cd "${_pkgname}-${pkgver}/cmd/fluxctl"
- go build \
- -trimpath \
- -mod=readonly \
- -modcacherw \
- -buildmode=pie \
- -ldflags "-w -X main.version="${pkgver}" -extldflags ${LDFLAGS}" .
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go build -ldflags "-w -X main.version="${pkgver}"" .
chmod +x ./fluxctl
}
-check(){
+check() {
cd "${_pkgname}-${pkgver}/cmd/fluxctl"
go test ./...
}
-package(){
+package() {
cd "${_pkgname}-${pkgver}/cmd/fluxctl"
install -Dsm755 ./fluxctl "${pkgdir}/usr/bin/fluxctl"
}
More information about the arch-commits
mailing list