diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-28 16:02:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-28 16:02:54 +0100 |
commit | a5509b9be1fe380ed210b8279d996e1f1b03017a (patch) | |
tree | 919df4b099c0e64e330833ddb01b17216b9cfc40 /app-admin/hcloud/hcloud-1.37.0.ebuild | |
parent | 9967860c0cd26c0940ee4b9ab6698e00e5b1260a (diff) |
gentoo auto-resync : 28:08:2023 - 16:02:54
Diffstat (limited to 'app-admin/hcloud/hcloud-1.37.0.ebuild')
-rw-r--r-- | app-admin/hcloud/hcloud-1.37.0.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-admin/hcloud/hcloud-1.37.0.ebuild b/app-admin/hcloud/hcloud-1.37.0.ebuild new file mode 100644 index 000000000000..c7dcd8ef353e --- /dev/null +++ b/app-admin/hcloud/hcloud-1.37.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-1.18:=" +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} +} |