mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-25 15:48:36 -06:00
Use install instead of directly piping
This commit is contained in:
parent
e3814cbea9
commit
b471ad76e1
1 changed files with 9 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
pkgname="topgrade-bin"
|
||||
_pkgname="topgrade"
|
||||
pkgver=10.2.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
||||
arch=('x86_64' 'aarch64' 'armv7')
|
||||
url='https://github.com/topgrade-rs/topgrade'
|
||||
|
@ -19,19 +19,19 @@ package() {
|
|||
# binary
|
||||
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
||||
# manpage
|
||||
mkdir -p "$pkgdir/usr/local/man/man8"
|
||||
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > "$pkgdir/usr/local/man/man8/topgrade.8"
|
||||
./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
|
||||
mkdir -p "${pkgdir}/usr/share/fish/completions/"
|
||||
./topgrade --gen-completion fish > "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
||||
./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
|
||||
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
|
||||
./topgrade --gen-completion bash > "${pkgdir}/usr/share/bash-completion/completions/topgrade"
|
||||
./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
|
||||
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
|
||||
./topgrade --gen-completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
||||
./topgrade --gen-completion zsh > topgrade.zsh
|
||||
install -Dm644 ./topgrade.zsh "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue