void-packages/srcpkgs/topgrade/template

24 lines
770 B
Bash

# Template file for 'topgrade'
pkgname=topgrade
version=14.0.1
revision=1
build_style=cargo
build_helper=qemu
short_desc="Meta upgrade tool for pip, flatpak, your distro and everything else"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="GPL-3.0-only"
homepage="https://github.com/topgrade-rs/topgrade"
distfiles="https://github.com/topgrade-rs/topgrade/archive/refs/tags/v${version}.tar.gz"
checksum=e4262fae2c89efe889b5a3533dc25d35dd3fbaf373091170f20bcc852017e8be
post_install() {
local topgrade="${DESTDIR}/usr/bin/topgrade"
for shell in bash fish zsh; do
vtargetrun ${topgrade} --gen-completion ${shell} > topgrade.${shell}
vcompletion topgrade.${shell} ${shell}
done
vtargetrun ${topgrade} --gen-manpage > topgrade.8
vman topgrade.8
}