summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2023-03-24 10:53:33 +0100
committerAgostino Sarubbo <ago@gentoo.org>2023-03-24 10:53:33 +0100
commite249f1890b1858c2b5c45da9f94158edd946db01 (patch)
tree3abb07f0aa4fc12c86bbe7160960314602d4e862 /app-admin
parentdev-java/jdbc-postgresql: bump to 42.6.0 (diff)
downloadgentoo-e249f1890b1858c2b5c45da9f94158edd946db01.tar.gz
gentoo-e249f1890b1858c2b5c45da9f94158edd946db01.tar.bz2
gentoo-e249f1890b1858c2b5c45da9f94158edd946db01.zip
app-admin/hcloud: version bump to 1.32.0
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/hcloud/Manifest1
-rw-r--r--app-admin/hcloud/hcloud-1.32.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/app-admin/hcloud/Manifest b/app-admin/hcloud/Manifest
index 57ee4ab50bf6..c81d6a92b34a 100644
--- a/app-admin/hcloud/Manifest
+++ b/app-admin/hcloud/Manifest
@@ -1 +1,2 @@
DIST hcloud-1.31.1.tar.xz 1735560 BLAKE2B 66b2deaefbf61a72bf6a9e004c29d1198e5cfd40956e9936d5db27903aff5f8151c230da61b33ce4231885613d53ba5c96f99fb10df03fdcc241ec32fa465de5 SHA512 b61683ea54455be1db0ae196615642d0247e56ca51f3848847fba09124a45606aea2495f4408694acc5e819d9dc79ffdb2b9ce4e85aade7dea0335be94461066
+DIST hcloud-1.32.0.tar.xz 1812752 BLAKE2B b49ee516d2560918f39f657d38b37d2ea4c1136b2c3a12648f48d91f1b5977f9f25c99a70a271d0f21a6ffd9d92efba9e089ec58ca39be3ef3db50138094a5a7 SHA512 7ef3ede11c08fc4b5241f797c2c64963c57c46c281e532e7b760d13d4abe7d5d032accf5fcece24e145ad14e0ccf0be3471b6d1a7100c8631ad447aebcebd9d3
diff --git a/app-admin/hcloud/hcloud-1.32.0.ebuild b/app-admin/hcloud/hcloud-1.32.0.ebuild
new file mode 100644
index 000000000000..c9186ddd8470
--- /dev/null
+++ b/app-admin/hcloud/hcloud-1.32.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A command-line interface for Hetzner Cloud"
+HOMEPAGE="https://github.com/hetznercloud/cli"
+SRC_URI="https://dev.gentoo.org/~ago/distfiles/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+DEPEND="dev-lang/go:="
+RESTRICT="strip"
+QA_FLAGS_IGNORED=".*"
+
+src_compile() {
+ go build -mod vendor -o ${PN} -ldflags "-w -X github.com/hetznercloud/cli/internal/version.Version=${PV}-gentoo" ./cmd/${PN} || die "build failed"
+}
+
+src_test() {
+ # For upstream a simple test is run 'hcloud version'
+ ./hcloud version
+ if [[ $? -ne 0 ]]
+ then
+ die "Test failed"
+ fi
+}
+
+src_install() {
+ dobin ${PN}
+}