gentoo/app-containers/podman-tui/podman-tui-1.5.0.ebuild
Rahil Bhimjiani e6a56c2a1b
app-containers/podman-tui: update to 1.5.0 & cleanup
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Closes: https://github.com/gentoo/gentoo/pull/41476
Signed-off-by: Zac Medico <zmedico@gentoo.org>
2025-04-06 11:57:08 -07:00

35 lines
842 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Terminal UI frontend for Podman"
HOMEPAGE="https://github.com/containers/podman-tui"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/containers/podman-tui.git"
else
SRC_URI="https://github.com/containers/podman-tui/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
# main pkg
LICENSE="Apache-2.0"
# deps
LICENSE+=" BSD-2 BSD MIT MPL-2.0"
SLOT="0"
RESTRICT="test"
src_compile() {
# parse tags from Makefile & make them comma-seperated as space-seperated list is deprecated
local BUILDTAGS=$(grep 'BUILDTAGS :=' Makefile | awk -F\" '{ print $2; }' | sed -e 's| |,|g;')
ego build -tags "${BUILDTAGS}"
}
src_install() {
dobin "${PN}"
einstalldocs
}