# Maintainer: Matjaž Mozetič # Project: BackTunnel – Reverse SSH folder sharing toolkit with Dolphin (KDE) integration # Repo: https://labs.pmisuite.com/PMISuite/BackTunnel pkgname=backtunnel pkgver=0.0.0 pkgrel=1 pkgdesc="BackTunnel – Reverse SSH folder sharing toolkit with Dolphin (KDE) service menus (with GUI wrapper)" arch=('any') url="https://labs.pmisuite.com/PMISuite/BackTunnel" license=('GPL3') depends=('bash' 'openssh' 'sshfs' 'kdialog' 'konsole' 'coreutils') optdepends=('qrencode: show QR code for invite' 'bash-completion: tab completion for backtunnel-share/access' 'plasma-desktop: Dolphin (KDE/Plasma) service menus') makedepends=('git') install=${pkgname}.install source=("git+https://labs.pmisuite.com/PMISuite/BackTunnel.git") md5sums=('SKIP') pkgver() { cd "${srcdir}/BackTunnel" # generate a pkgver like: 0.0.0.r.g printf "0.0.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/BackTunnel" # nothing to build : } package() { cd "${srcdir}/BackTunnel" # Binaries install -Dm755 "scripts/backtunnel-share" "${pkgdir}/usr/bin/backtunnel-share" install -Dm755 "scripts/backtunnel-access" "${pkgdir}/usr/bin/backtunnel-access" # NEW: GUI wrapper for Dolphin service menu install -Dm755 "scripts/backtunnel-share-gui" "${pkgdir}/usr/bin/backtunnel-share-gui" # Man page install -Dm644 "man/backtunnel.1" "${pkgdir}/usr/share/man/man1/backtunnel.1" # Bash completion (install for both command names) 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" # Desktop launcher (if present) if [[ -f "desktop/backtunnel.desktop" ]]; then install -Dm644 "desktop/backtunnel.desktop" "${pkgdir}/usr/share/applications/backtunnel.desktop" fi # Dolphin service menus install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_share.desktop" install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_access.desktop" # Plasma 5 legacy path (keep for users on older Plasma) install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_share.desktop" install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_access.desktop" }