guru/dev-util/gitlab-ci-local-bin/gitlab-ci-local-bin-4.56.0.ebuild
Florian Schmaus b1ce1c46b4
dev-util/gitlab-ci-local-bin: add 4.56.0
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-12-11 11:14:18 +01:00

42 lines
808 B
Bash

# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
DESCRIPTION="Run gitlab pipelines locally as shell executor or docker executor"
HOMEPAGE="https://github.com/firecow/gitlab-ci-local"
SRC_URI="https://github.com/firecow/gitlab-ci-local/releases/download/${PV}/linux.gz -> ${P}.gz"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# gitlab-ci-local requires debug information to run, as it performs a
# sort of self-introspection.
RESTRICT="strip"
MY_PN="${PN/-bin/}"
QA_PREBUILT="usr/bin/gitlab-ci-local"
src_prepare() {
default
chmod 755 ${P} || die
}
src_compile() {
# Generate zsh completion.
./${P} --completion > _${MY_PN} || die
}
src_install() {
newbin ${P} ${MY_PN}
dozshcomp _${MY_PN}
}