Files
knock/packaging/arch/knock-bin/PKGBUILD
T
JoshiCodes 4b1590e750 Cookie jars per folder; pacman repository on Gitea; install guide per platform
- A folder can share its parent's cookie jar, keep its own, or use no
  cookies; sub folders follow. The Cookies tab shows the jar a request
  used. Jars are stored per collection and folder.
- The release workflow builds knock-bin from the deb and uploads it to
  the Gitea pacman repository (needs the GITEA_PACKAGES_TOKEN secret)
- knock-bin installs the desktop entry as knock-app.desktop
- README: install for Arch (signed pacman repo), Ubuntu/Debian,
  Fedora/openSUSE, AppImage, macOS (quarantine) and Windows (SmartScreen)
- release.sh works when the version is already set
2026-11-27 22:12:08 +01:00

24 lines
1016 B
Bash

# Maintainer: Joshua <joshua at joshicodes dot de>
pkgname=knock-bin
pkgver=0.1.0
pkgrel=1
pkgdesc="Offline desktop API client for REST, GraphQL and WebSocket with plain-file collections (binary release)"
arch=('x86_64')
url="https://github.com/JoshiCodes/knock"
license=('MIT')
depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring')
provides=('knock')
conflicts=('knock')
source=("knock_${pkgver}_amd64.deb::$url/releases/download/v$pkgver/knock_${pkgver}_amd64.deb")
sha256sums=('SKIP')
package() {
bsdtar -xf data.tar.* -C "$pkgdir"
# KDE matches the window (app id knock-app) to the desktop file by name.
if [ -f "$pkgdir/usr/share/applications/knock.desktop" ]; then
mv "$pkgdir/usr/share/applications/knock.desktop" "$pkgdir/usr/share/applications/knock-app.desktop"
fi
install -Dm644 "$pkgdir/usr/share/doc/knock/copyright" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 2>/dev/null || true
}