upgpkg: drone-cli 1.3.3-2

Ensure version is present in compiled binary.
This commit is contained in:
George Rawlinson 2021-09-08 01:07:12 +00:00
parent 2a893cd13c
commit c318bd932b
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -2,7 +2,7 @@
pkgname=drone-cli
pkgver=1.3.3
pkgrel=1
pkgrel=2
pkgdesc="Command line interface for Drone CI"
arch=('x86_64')
url="https://docs.drone.io/cli"
@ -34,7 +34,7 @@ build() {
-buildmode=pie \
-mod=vendor \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-ldflags "-linkmode external -extldflags ${LDFLAGS} -X main.version=$pkgver" \
-o build \
./...
}