Files
guru/app-misc/pueue/pueue-4.0.4.ebuild
Jonas Frei 097f95d36e app-misc/pueue: add 4.0.4
Signed-off-by: Jonas Frei <freijon@pm.me>
2026-03-04 05:47:22 +01:00

51 lines
1.3 KiB
Bash

# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
RUST_MIN_VER="1.88.0"
inherit cargo systemd shell-completion
DESCRIPTION="A cli tool for managing long running shell commands."
HOMEPAGE="https://github.com/nukesor/pueue"
SRC_URI="https://github.com/Nukesor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
DEPS_URI="https://github.com/gentoo-crate-dist/pueue/releases/download/v${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="
usr/bin/${PN}
usr/bin/${PN}d
"
src_install() {
cargo_src_install --path pueue
# generate and install shell completions files
mkdir completions
# bash completions
"${ED}"/usr/bin/pueue completions bash completions || die "gen bash completion failed"
newbashcomp completions/${PN}.bash ${PN}
# zsh completions
"${ED}"/usr/bin/pueue completions zsh completions || die "gen zsh completion failed"
dozshcomp completions/_${PN}
# fish completions
"${ED}"/usr/bin/pueue completions fish completions || die "gen fish completion failed "
dofishcomp completions/${PN}.fish
# install the systemd-service
systemd_douserunit utils/pueued.service
}