diff --git a/topgrade-bin/PKGBUILD b/topgrade-bin/PKGBUILD index 99ca9ea..b2ce177 100644 --- a/topgrade-bin/PKGBUILD +++ b/topgrade-bin/PKGBUILD @@ -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 }