blob: 52fa68345b447029f1077e6507e22a03b4d05295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# 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=('5d9f1dfbd17d8f13a78d74b8283d5dca079be4a9a083176758eb3cb5b601be8501c9260fea653394ab80c704572aaf0c0e965078609e68c945a22933ef81346f')
b2sums_aarch64=('6830fb21206b2507fb16f58bcf995f2f14a19b9805c744e08fe10cb70567ac5dc85816f9d891d09b7f5c531f63e0b859e503a55d68eec4e44eec066c9100f9d1')
b2sums_armv7h=('261a599503dfd66a411dfa7c2e3c62e8b59a732b13b4029e3a1eb453ca101ee83c7310e2f1c46e849668c0829a79dbcb665d5f60f33e9b462350e94f56843f73')
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"
}
|