Files
gentoo-zh/dev-util/pack-cli/pack-cli-0.40.11.ebuild
T
Zakk f8b0777717 dev-util/pack-cli: add 0.40.11, drop 0.40.10
Upstream go.mod now requires go 1.26.11, so raise the BDEPEND floor.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-13 16:35:35 +11:00

39 lines
914 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="CLI for building apps using Cloud Native Buildpacks"
HOMEPAGE="https://buildpacks.io https://paketo.io https://github.com/buildpacks/pack"
SRC_URI="https://github.com/buildpacks/pack/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+="
https://github.com/gentoo-zh-drafts/pack/releases/download/v${PV}/pack-${PV}-vendor.tar.xz
-> ${P}-vendor.golang-dist-mirror-action.tar.xz
"
S="${WORKDIR}/pack-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
RDEPEND="
|| (
app-containers/docker-cli
app-containers/podman
)
"
RDEPEND+=" !dev-util/pack-cli-bin"
BDEPEND=">=dev-lang/go-1.26.11"
src_compile() {
local ldflags="-X 'github.com/buildpacks/pack/pkg/client.Version=${PV}'"
ego build -ldflags "${ldflags}" .
}
src_install() {
dobin pack
}