[arch-commits] Commit in fluxctl/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sun Mar 15 01:06:25 UTC 2020
Date: Sunday, March 15, 2020 @ 01:06:24
Author: shibumi
Revision: 597537
upgpkg: fluxctl 1.18.0-1
Modified:
fluxctl/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-15 01:03:07 UTC (rev 597536)
+++ PKGBUILD 2020-03-15 01:06:24 UTC (rev 597537)
@@ -14,15 +14,8 @@
sha512sums=('9973f71b0afd8c410ad561988759c068e7cd969445db1c71c1e1d835bf385fe075e94a7537e7eca307b0f8dc316369344e932f369df5a724e611581ae005cbb4')
changelog=CHANGELOG.md
-prepare() {
- export GOPATH="${srcdir}"
- export PATH="$PATH:$GOPATH/bin"
- mkdir -p "src/github.com/fluxcd/"
- mv "${_pkgname}-${pkgver}" "src/github.com/fluxcd/${_pkgname}"
-}
-
build(){
- cd "src/github.com/fluxcd/${_pkgname}/cmd/fluxctl"
+ cd "${_pkgname}-${pkgver}/cmd/fluxctl"
go build \
-trimpath \
-ldflags "-w -X main.version="${pkgver}" -extldflags ${LDFLAGS}" .
@@ -30,11 +23,11 @@
}
check(){
- cd "src/github.com/fluxcd/${_pkgname}/cli"
+ cd "${_pkgname}-${pkgver}/cmd/fluxctl"
go test ./...
}
package(){
- cd "src/github.com/fluxcd/${_pkgname}/cli"
+ cd "${_pkgname}-${pkgver}/cmd/fluxctl"
install -Dsm755 ./fluxctl "${pkgdir}/usr/bin/fluxctl"
}
More information about the arch-commits
mailing list