summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2022-06-28 16:15:03 +0200
committerAgostino Sarubbo <ago@gentoo.org>2022-06-28 16:15:03 +0200
commitc9baed78f05f99338abd378e4338ff6d2a9a509d (patch)
tree4f8ad4958a0e77d31bd9ec2c2aa1a44d2715206a /app-admin
parentprofiles: Fix issue of pecl-redis and igbinary targets (diff)
downloadgentoo-c9baed78f05f99338abd378e4338ff6d2a9a509d.tar.gz
gentoo-c9baed78f05f99338abd378e4338ff6d2a9a509d.tar.bz2
gentoo-c9baed78f05f99338abd378e4338ff6d2a9a509d.zip
app-admin/hcloud: version bump to 1.30.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3 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.30.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/app-admin/hcloud/Manifest b/app-admin/hcloud/Manifest
index c6d9ebf90350..8790dba4eab3 100644
--- a/app-admin/hcloud/Manifest
+++ b/app-admin/hcloud/Manifest
@@ -1 +1,2 @@
DIST hcloud-1.29.5.tar.xz 1416952 BLAKE2B 4b1c9e1df9bb3fdb63c28890e7f9cfb8c4c628fd22b765d8265e63415b8feee0466f32fd6a87a5cd981d231f93a60c28c140c1efa7ea33c327b234f1a4d6b0cf SHA512 fbe395c47cf1bef800c162b8c44359dab173c636ec4d7e8e4629fa95b323731c7c3d8a9045dd77692b7beb8a3554cdce567f2285640a5b410262be69442fe99e
+DIST hcloud-1.30.0.tar.xz 1650212 BLAKE2B 5fe33e0e782524822bcd7f199d826009ef6c68e9759281613eda1c8481f962b220956fa24515a6f93bf246f43bd0198ddd180a299ddbe2e91327c83f9685ac26 SHA512 9a1160d03f30ac939b5e8eab466f1496476efdcca6b138bc89ca7c0ac5be211ca570eadb050948d1c8bdeeb13b392c6ac0c2a1726c4c53ffca2689e389a3f64f
diff --git a/app-admin/hcloud/hcloud-1.30.0.ebuild b/app-admin/hcloud/hcloud-1.30.0.ebuild
new file mode 100644
index 000000000000..82ba00ab5dca
--- /dev/null
+++ b/app-admin/hcloud/hcloud-1.30.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 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}
+}