24 lines
777 B
Bash
24 lines
777 B
Bash
# Template file for 'topgrade'
|
|
pkgname=topgrade
|
|
version=16.0.1
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
short_desc="Meta upgrade tool for pip, flatpak, your distro and everything else"
|
|
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/topgrade-rs/topgrade"
|
|
distfiles="https://github.com/topgrade-rs/topgrade/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=9cfcf31db3322f536f0c48d8a75c6750f18762e0ef60eb7446e3d4a0ab60853f
|
|
|
|
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
|
|
}
|