deb: place bash completion at correct path, using debhelper (#839)

fixes https://github.com/zrepl/zrepl/issues/794
This commit is contained in:
Christian Schwarz 2024-10-28 00:46:23 +01:00 committed by GitHub
parent cc0f3b1f13
commit 2923009689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
build-essential \
devscripts \
dh-exec \
bash-completion \
binutils-aarch64-linux-gnu \
binutils-arm-linux-gnueabihf \
binutils-i686-linux-gnu \

View File

@ -1,6 +1,6 @@
Source: zrepl
Maintainer: Christian Schwarz <me@cschwarz.com>
Build-Depends: dh-exec
Build-Depends: dh-exec, bash-completion
Package: zrepl
Architecture: arm64 amd64 armhf i386

View File

@ -1,7 +1,7 @@
#!/usr/bin/make -f
%:
dh $@
dh $@ --with bash-completion
override_dh_strip:
@ -26,8 +26,9 @@ override_dh_auto_install:
cp --preserve=all artifacts/$(ZREPL_DPKG_ZREPL_BINARY_FILENAME) debian/renamedir/zrepl
dh_install debian/renamedir/zrepl usr/bin
# install bash completion
dh_install artifacts/bash_completion etc/bash_completion.d/zrepl
# install zsh completions
# NB: bash completion auto-magic via dh_bash-completion
# TODO: unify on https://tracker.debian.org/pkg/dh-shell-completions when available
dh_install artifacts/_zrepl.zsh_completion usr/share/zsh/vendor-completions
# install docs

View File

@ -0,0 +1 @@
artifacts/bash_completion zrepl