2022-12-01 16:25:59 -06:00
|
|
|
# Maintainer: Sintan Santorum <c1scu0hh at anonaddy dot me>
|
|
|
|
pkgname="topgrade-bin"
|
|
|
|
_pkgname="topgrade"
|
2022-12-18 13:19:20 -06:00
|
|
|
pkgver=10.2.4
|
2022-12-25 10:15:15 -06:00
|
|
|
pkgrel=2
|
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')
|
|
|
|
source_x86_64=("topgrade.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-x86_64-unknown-linux-musl.tar.gz")
|
|
|
|
source_aarch64=("topgrade.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-aarch64-unknown-linux-musl.tar.gz")
|
2022-12-25 10:15:15 -06:00
|
|
|
source_armv7h=("topgrade.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-armv7-unknown-linux-gnueabihf.tar.gz")
|
2022-12-18 13:19:20 -06:00
|
|
|
b2sums_x86_64=('5133865fabb0bc069413bed3788e0be9b323d4f459b772fddca9b65a466bbfdfdd8741a70b3e6ad36f8b24bd1abcd3007366872cf2a2f0f7094eb3bb9150e08c')
|
|
|
|
b2sums_aarch64=('2d6ef45a722095e0c9afb42058be08e41cfe6e591591bc04aff0f513c8b63d574ae74e9ea97fe27b1ccea80513e9a7420720309fb86295153d56d729ba8e053b')
|
2022-12-25 10:15:15 -06:00
|
|
|
b2sums_armv7h=('481a1da8de0688c3dcda3d83036ac6704feaba1d82faa5d79318602857d97d954479c9a5358a66c224475413e47da064f106a06be5ded9eebd49c9ebbf41b2aa')
|
2022-12-01 16:25:59 -06:00
|
|
|
package() {
|
|
|
|
# binary
|
|
|
|
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
|
|
|
# manpage
|
2022-12-01 22:29:42 -06:00
|
|
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > topgrade.8
|
|
|
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/man/man8/topgrade.8"
|
2022-12-01 17:00:36 -06:00
|
|
|
# completions
|
|
|
|
if $(command -v fish &> /dev/null); then
|
2022-12-01 22:29:42 -06:00
|
|
|
./topgrade --gen-completion fish > topgrade.fish
|
|
|
|
install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
2022-12-01 17:00:36 -06:00
|
|
|
fi
|
|
|
|
if $(command -v bash &> /dev/null); then
|
2022-12-01 22:29:42 -06:00
|
|
|
./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
|
|
|
|
if $(command -v zsh &> /dev/null); then
|
2022-12-01 22:29:42 -06:00
|
|
|
./topgrade --gen-completion zsh > topgrade.zsh
|
|
|
|
install -Dm644 ./topgrade.zsh "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
2022-12-01 17:00:36 -06:00
|
|
|
fi
|
2022-12-01 16:25:59 -06:00
|
|
|
}
|