Update BackTunnel PKGBUILD: add backtunnel-umount, extend bash completion, and refine dependency descriptions

This commit is contained in:
2025-09-21 19:08:11 +02:00
parent cf24f576a4
commit 19f7b0a003

View File

@@ -12,7 +12,7 @@ license=('GPL3')
depends=('bash' 'openssh' 'sshfs' 'kdialog' 'konsole' 'coreutils') depends=('bash' 'openssh' 'sshfs' 'kdialog' 'konsole' 'coreutils')
optdepends=( optdepends=(
'qrencode: show QR code for invites' 'qrencode: show QR code for invites'
'bash-completion: tab completion for backtunnel-share/access' 'bash-completion: tab completion for backtunnel tools'
'plasma-desktop: Dolphin (KDE/Plasma) service menus' 'plasma-desktop: Dolphin (KDE/Plasma) service menus'
) )
makedepends=('git') makedepends=('git')
@@ -46,6 +46,7 @@ package() {
install -Dm755 "scripts/backtunnel-auth-setup" "${pkgdir}/usr/bin/backtunnel-auth-setup" install -Dm755 "scripts/backtunnel-auth-setup" "${pkgdir}/usr/bin/backtunnel-auth-setup"
install -Dm755 "scripts/backtunnel-keys" "${pkgdir}/usr/bin/backtunnel-keys" install -Dm755 "scripts/backtunnel-keys" "${pkgdir}/usr/bin/backtunnel-keys"
install -Dm755 "scripts/backtunnel-authorize" "${pkgdir}/usr/bin/backtunnel-authorize" install -Dm755 "scripts/backtunnel-authorize" "${pkgdir}/usr/bin/backtunnel-authorize"
install -Dm755 "scripts/backtunnel-umount" "${pkgdir}/usr/bin/backtunnel-umount"
# Optional helper to create per-user config from example # Optional helper to create per-user config from example
if [[ -f "scripts/backtunnel-init" ]]; then if [[ -f "scripts/backtunnel-init" ]]; then
@@ -70,10 +71,12 @@ EOF
# Man page # Man page
install -Dm644 "man/backtunnel.1" "${pkgdir}/usr/share/man/man1/backtunnel.1" install -Dm644 "man/backtunnel.1" "${pkgdir}/usr/share/man/man1/backtunnel.1"
# Bash completion (install for both command names) # Bash completion (install for all command entry points that source it)
if [[ -f "completions/backtunnel.bash" ]]; then if [[ -f "completions/backtunnel.bash" ]]; then
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-share" install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-share"
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-access" install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-access"
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-share-tui"
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-access-tui"
fi fi
# Dolphin service menus (Plasma 6 path) # Dolphin service menus (Plasma 6 path)