name="topgrade" version=12.0.1 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=('40b1e1da5f341f9bf7eb996ac20f9581746f82222adb86438100605bec8b770c') checksums_aarch64=('2f36d8e2da7dfa46fe39b006e3d740268d2e55fc54647af7baf12647cd4d5e84') checksums_armv7=('a15929b2de0a6b1ce4d6e8ee4d7f18bf9aa11e1619b7f469f97d1ace26f9283c') package() { # install binary install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade" # manpage ./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >topgrade.8 install -Dm644 ./topgrade.8 "$pkgdir/usr/local/share/man/man8/topgrade.8" # completions if $(command -v fish &>/dev/null) && [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then ./topgrade --gen-completion fish >topgrade.fish install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish" fi if $(command -v bash &>/dev/null); then ./topgrade --gen-completion bash >topgrade.bash install -Dm644 ./topgrade.bash "${pkgdir}/usr/share/bash-completion/completions/topgrade" fi if $(command -v zsh &>/dev/null); then ./topgrade --gen-completion zsh >topgrade.zsh install -Dm644 ./topgrade.zsh "${pkgdir}/usr/share/zsh/site-functions/_topgrade" fi echo "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation" }