24 lines
768 B
Bash
24 lines
768 B
Bash
# Template file for 'topgrade'
|
|
pkgname=topgrade
|
|
version=10.2.2
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
short_desc="Meta upgrade tool for pip, flatpak, your distro and everything else"
|
|
maintainer="jcgruenhage <jan.christian@gruenhage.xyz>"
|
|
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=00dd0afa9ba166d61e63ea7387b3c6dfd6c905f5a42c1cefc394e7d0a869a6a1
|
|
|
|
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
|
|
}
|