lure-repo/topgrade/lure.sh

32 lines
1.5 KiB
Bash
Raw Normal View History

2022-12-18 13:31:56 -06:00
name="topgrade"
2024-10-06 14:11:12 -05:00
version=16.0.0
2024-01-21 22:09:58 -06:00
release=1
2022-12-18 13:31:56 -06:00
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")
2024-10-06 14:11:12 -05:00
checksums_amd64=('8c10135cd6c569d8adc27ec1b46b359e70954de5763bad1ba42483e0ff0e8a88')
checksums_aarch64=('46fbe915d024e1286055989857ffc213fdb234b5e15d20a4e71548f06867f8d1')
checksums_armv7=('0494888725d45e20c7e96338032ed7b33fd18728d69e3eb58e10db040d1fbf95')
2022-12-18 13:31:56 -06:00
package() {
2023-02-01 10:57:34 -06:00
# install binary
install-binary "./${name}"
2022-12-18 13:31:56 -06:00
# manpage
"./${name}" --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >"${name}.8"
install-manual "./${name}.8"
2022-12-18 13:31:56 -06:00
# completions
if [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then
2023-09-12 17:15:48 -05:00
"${name}" --gen-completion fish | install-completion fish "${name}"
2022-12-18 13:31:56 -06:00
fi
2023-09-12 17:15:48 -05:00
"${name}" --gen-completion zsh | install-completion zsh "${name}"
"${name}" --gen-completion bash | install-completion bash "${name}"
2023-04-30 15:24:19 -05:00
echo "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation"
2022-12-18 13:31:56 -06:00
}