name="topgrade" version=14.0.0 release=1 desc="Invoke the upgrade procedure of multiple package managers" architectures=('amd64' 'aarch64' 'armv7') maintainer='SinTan1729' homepage='https://github.com/topgrade-rs/topgrade' license=('GPL3') provides=('topgrade') conflicts=('topgrade') sources_amd64=("${homepage}/releases/download/v${version}/${name}-v${version}-x86_64-unknown-linux-musl.tar.gz") sources_aarch64=("${homepage}/releases/download/v${version}/${name}-v${version}-aarch64-unknown-linux-musl.tar.gz") sources_armv7=("${homepage}/releases/download/v${version}/${name}-v${version}-armv7-unknown-linux-gnueabihf.tar.gz") checksums_amd64=('f9fc5378ef86dc40efbd0e40a7b62b8e1470ce4f00c0ea101f512520d3bfe797') checksums_aarch64=('114b95c286b3e5a4cd300b041013f19514c9bda24926de4536e9e52fa8f71622') checksums_armv7=('9e6d6706af24c253e26d85c6313f518754c75df64bcd89d6c135a298a2336b3b') package() { # install binary install-binary "./${name}" # manpage "./${name}" --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >"${name}.8" install-manual "./${name}.8" # completions if [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then "${name}" --gen-completion fish | install-completion fish "${name}" fi "${name}" --gen-completion zsh | install-completion zsh "${name}" "${name}" --gen-completion bash | install-completion bash "${name}" echo "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation" }