mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 06:48:35 -06:00
31 lines
1.5 KiB
Bash
31 lines
1.5 KiB
Bash
name="topgrade"
|
|
version=13.0.0
|
|
release=3
|
|
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=('333d29341ebad8737ab3b4eff99a8f1d8035307615d974a45bead8fd31bbf67b')
|
|
checksums_aarch64=('82376083837b3914eab12ec562f62b410c583f9f8d7a3ee042f53be353927548')
|
|
checksums_armv7=('b3f9e1178d3b5ffb909e2459f466e7598d02e27c5c1d2b3044ce3e5ebf6575be')
|
|
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"
|
|
}
|