mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-26 08:08:36 -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=12.0.2
|
|
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=('8991167797a6fc22fdfaa2bb1461d8cfc2bc182fa23f0cfce1f9e52eded623fc247803bb49f21f5c4b12cc9f8446e0978b9bc462fd11a2d94dbc64db96613ab6')
|
|
b2sums_aarch64=('c0ffd49224cac5425380ae21e9daceea07720489ff0feb8843678ee47d41dbc112b5df2eb5e0dd3a8d7045ca8aade92143b5bc0ad46e915db91a710e8a219a22')
|
|
b2sums_armv7h=('f68eaadca524cc11630291caa76a49a95e15a25a18053416162013c441ce7ceb9ab23a0509281a2047a008c63b3452964a884166c22936d1819cb771a9d8fe40')
|
|
package() {
|
|
# install binary
|
|
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
|
# manpage
|
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >topgrade.8
|
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/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"
|
|
}
|