24 lines
785 B
Bash
24 lines
785 B
Bash
# Template file for 'topgrade'
|
|
pkgname=topgrade
|
|
version=17.6.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=c25274461f61b8fa469c1645a892bb5b52236bb64dc448152c6f485f9ec1cb1d
|
|
|
|
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.1
|
|
vman topgrade.1
|
|
}
|