2022-12-01 16:25:59 -06:00
|
|
|
# Maintainer: Sintan Santorum <c1scu0hh at anonaddy dot me>
|
|
|
|
pkgname="topgrade-bin"
|
|
|
|
_pkgname="topgrade"
|
2023-05-01 14:39:33 -05:00
|
|
|
pkgver=11.0.2
|
2023-04-30 15:16:50 -05:00
|
|
|
pkgrel=1
|
2022-12-01 16:25:59 -06:00
|
|
|
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
2022-12-25 10:15:15 -06:00
|
|
|
arch=('x86_64' 'aarch64' 'armv7h')
|
2022-12-01 16:25:59 -06:00
|
|
|
url='https://github.com/topgrade-rs/topgrade'
|
|
|
|
license=('GPL3')
|
|
|
|
provides=('topgrade')
|
|
|
|
conflicts=('topgrade')
|
2023-03-13 11:58:40 -05:00
|
|
|
source_x86_64=("topgrade_x86_64-$pkgver.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-x86_64-unknown-linux-musl.tar.gz")
|
|
|
|
source_aarch64=("topgrade_aarch64-$pkgver.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-aarch64-unknown-linux-musl.tar.gz")
|
|
|
|
source_armv7h=("topgrade_armv7h-$pkgver.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-armv7-unknown-linux-gnueabihf.tar.gz")
|
2023-05-01 14:39:33 -05:00
|
|
|
b2sums_x86_64=('52ed062be12ea948c0c6431d1bbef92a2ef745f0e2e11176089c41bad3818fd85369c3641fab0debdd960af657e072d898befcb8fc4aabab2e24d99d022e86c0')
|
|
|
|
b2sums_aarch64=('caebaf7ded265a2de0c7b490e9e20d2656e2cc512e8948e03ddd50a2598b6b64d48bd284c3fb36ac0eb4fecb5ac1b6905f0f9038fac8038a82dc3f57e94fa04f')
|
|
|
|
b2sums_armv7h=('44238c5eeb8b90471e8678cc11bcbc534abe8ff28002a228477acff2022d749ccf6b89ff917825195ee391d3ad6b32479fc906b02c1ccbf9b39acd20431934e8')
|
2022-12-01 16:25:59 -06:00
|
|
|
package() {
|
2023-02-01 10:54:34 -06:00
|
|
|
# install binary
|
2023-04-30 15:16:50 -05:00
|
|
|
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
2022-12-01 16:25:59 -06:00
|
|
|
# manpage
|
2023-03-13 11:58:40 -05:00
|
|
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >topgrade.8
|
2022-12-01 22:29:42 -06:00
|
|
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/man/man8/topgrade.8"
|
2022-12-01 17:00:36 -06:00
|
|
|
# completions
|
2023-03-15 13:39:44 -05:00
|
|
|
# if $(command -v fish &>/dev/null); then
|
|
|
|
# ./topgrade --gen-completion fish >topgrade.fish
|
|
|
|
# install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
|
|
|
# fi
|
2023-03-13 11:58:40 -05:00
|
|
|
if $(command -v bash &>/dev/null); then
|
|
|
|
./topgrade --gen-completion bash >topgrade.bash
|
|
|
|
install -Dm644 ./topgrade.bash "${pkgdir}/usr/share/bash-completion/completions/topgrade"
|
2022-12-01 17:00:36 -06:00
|
|
|
fi
|
2023-03-13 11:58:40 -05:00
|
|
|
if $(command -v zsh &>/dev/null); then
|
|
|
|
./topgrade --gen-completion zsh >topgrade.zsh
|
2022-12-01 22:29:42 -06:00
|
|
|
install -Dm644 ./topgrade.zsh "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
2022-12-01 17:00:36 -06:00
|
|
|
fi
|
2023-04-30 15:16:50 -05:00
|
|
|
# "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-01 16:25:59 -06:00
|
|
|
}
|