mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-25 07:48:35 -06:00
38 lines
2.1 KiB
Bash
38 lines
2.1 KiB
Bash
# Maintainer: Sintan Santorum <c1scu0hh at anonaddy dot me>
|
|
pkgname="topgrade-bin"
|
|
_pkgname="topgrade"
|
|
pkgver=16.0.1
|
|
pkgrel=1
|
|
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
|
arch=('x86_64' 'aarch64' 'armv7h')
|
|
url='https://github.com/topgrade-rs/topgrade'
|
|
license=('GPL3')
|
|
provides=('topgrade')
|
|
conflicts=('topgrade')
|
|
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")
|
|
b2sums_x86_64=('0855ef833378ca8a2f258af58388ba2deb75b0d6f235a6df577c8ed89a2aed4dbc9ed884f8a621cfcfe3cbb3e6edd042ebcae759efb07768469e6a4ea50f88bf')
|
|
b2sums_aarch64=('ac6912988db0fa3942dbd3ea5a939102bd3f3b85f4252ccf327ae0d10a00b29629c0c32728ee2d98f0675e7a0a5892d09b8383445acfa986a4f780260010161e')
|
|
b2sums_armv7h=('f647bda0df30f7e39f01bbafbe535c77c136411e634a9e37e604e8fb6161557d01d8d2d0e4eefdba60e6ca68103a82d7e3475804667019cd975d3dadb1e11195')
|
|
package() {
|
|
# install binary
|
|
install -Dm755 ./topgrade "$pkgdir/usr/bin/topgrade"
|
|
# manpage
|
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >topgrade.8
|
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/share/man/man8/topgrade.8"
|
|
# completions
|
|
# 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
|
|
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
|
|
# "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation"
|
|
}
|