diff options
author | Agostino Sarubbo <ago@gentoo.org> | 2022-04-19 16:33:23 +0200 |
---|---|---|
committer | Agostino Sarubbo <ago@gentoo.org> | 2022-04-19 16:33:23 +0200 |
commit | 3192e959580a4c848236aa67cec5c6500fe3a6b1 (patch) | |
tree | f32ebecfa4896f72782e974adea317856f12274c /app-admin/hcloud/hcloud-1.29.5.ebuild | |
parent | dev-libs/libuv: Stabilize 1.44.1 arm64, #839378 (diff) | |
download | gentoo-3192e959580a4c848236aa67cec5c6500fe3a6b1.tar.gz gentoo-3192e959580a4c848236aa67cec5c6500fe3a6b1.tar.bz2 gentoo-3192e959580a4c848236aa67cec5c6500fe3a6b1.zip |
app-admin/hcloud: version bump to 1.29.5
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
Diffstat (limited to 'app-admin/hcloud/hcloud-1.29.5.ebuild')
-rw-r--r-- | app-admin/hcloud/hcloud-1.29.5.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-admin/hcloud/hcloud-1.29.5.ebuild b/app-admin/hcloud/hcloud-1.29.5.ebuild new file mode 100644 index 000000000000..82ba00ab5dca --- /dev/null +++ b/app-admin/hcloud/hcloud-1.29.5.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} +} |