mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-26 08:08: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-bin"
|
||||||
_pkgname="topgrade"
|
_pkgname="topgrade"
|
||||||
pkgver=10.2.1
|
pkgver=10.2.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
||||||
arch=('x86_64' 'aarch64' 'armv7')
|
arch=('x86_64' 'aarch64' 'armv7')
|
||||||
url='https://github.com/topgrade-rs/topgrade'
|
url='https://github.com/topgrade-rs/topgrade'
|
||||||
|
@ -19,19 +19,19 @@ package() {
|
||||||
# binary
|
# binary
|
||||||
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
||||||
# manpage
|
# manpage
|
||||||
mkdir -p "$pkgdir/usr/local/man/man8"
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > topgrade.8
|
||||||
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > "$pkgdir/usr/local/man/man8/topgrade.8"
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/man/man8/topgrade.8"
|
||||||
# completions
|
# completions
|
||||||
if $(command -v fish &> /dev/null); then
|
if $(command -v fish &> /dev/null); then
|
||||||
mkdir -p "${pkgdir}/usr/share/fish/completions/"
|
./topgrade --gen-completion fish > topgrade.fish
|
||||||
./topgrade --gen-completion fish > "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
||||||
fi
|
fi
|
||||||
if $(command -v bash &> /dev/null); then
|
if $(command -v bash &> /dev/null); then
|
||||||
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
|
./topgrade --gen-completion bash > topgrade.bash
|
||||||
./topgrade --gen-completion bash > "${pkgdir}/usr/share/bash-completion/completions/topgrade"
|
install -Dm644 ./topgrade.bash "${pkgdir}/usr/share/bash-completion/completions/topgrade"
|
||||||
fi
|
fi
|
||||||
if $(command -v zsh &> /dev/null); then
|
if $(command -v zsh &> /dev/null); then
|
||||||
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
|
./topgrade --gen-completion zsh > topgrade.zsh
|
||||||
./topgrade --gen-completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
install -Dm644 ./topgrade.zsh "${pkgdir}/usr/share/zsh/site-functions/_topgrade"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue