[arch-commits] Commit in hcloud/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Fri Mar 19 22:47:45 UTC 2021
Date: Friday, March 19, 2021 @ 22:47:44
Author: shibumi
Revision: 895382
upgpkg: hcloud 1.21.1-1
Modified:
hcloud/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-19 22:46:49 UTC (rev 895381)
+++ PKGBUILD 2021-03-19 22:47:44 UTC (rev 895382)
@@ -3,7 +3,7 @@
_pkgname=cli
pkgname=hcloud
-pkgver=1.20.1
+pkgver=1.21.1
pkgrel=1
pkgdesc="CLI for Hetzner Cloud"
arch=('x86_64')
@@ -15,8 +15,8 @@
makedepends=('go-pie' 'git')
depends=('glibc')
provides=('hcloud')
-_hcloud_commit='178bf96a689ea417f9401e4b1059cf9c44a44c07'
-source=("git+https://github.com/hetznercloud/cli#commit=${_hcloud_commit}"
+_hcloud_commit='54428330dcf50a87896612ac670f28490c295ef8'
+source=("${pkgname}::git+https://github.com/hetznercloud/cli#commit=${_hcloud_commit}"
_hcloud.zsh)
sha512sums=('SKIP'
'1964c7445200327ee71974591516bdcc3a00751ff3407891a7401ad486b4a0ee51bfc8c0e8d0e074b788936f365a435322bd4c9b2b527f6621b0965b60477897')
@@ -28,7 +28,7 @@
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- cd "${_pkgname}"
+ cd "${pkgname}"
go build \
-ldflags "-linkmode=external -w -X github.com/hetznercloud/cli/cli.Version=${pkgver}" \
github.com/hetznercloud/cli/cmd/hcloud
@@ -37,12 +37,12 @@
}
check() {
- cd "${_pkgname}/cli"
- go test -v -x
+ cd "${pkgname}"
+ go test -v -x ./...
}
package() {
- cd "${_pkgname}"
+ cd "${pkgname}"
install -Dsm755 ./hcloud "${pkgdir}/usr/bin/hcloud"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${pkgname}-completion.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgname"
More information about the arch-commits
mailing list