# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (C) 2026 Todd Kennedy
# The Arch package, made from the release's .deb by
# scripts/ci/arch-package.sh, which fills in pkgver and the deb's
# checksum. The files are the deb's, the binary built on the CI image
# (glibc 2.35), so the two packages carry the same bytes. The polkit
# action the deb installs is the prompt quick unlock asks through.
pkgname=keepass-sync
pkgver=0.0.0
pkgrel=1
pkgdesc='A KDBX 4 password manager with WebDAV sync'
arch=('x86_64')
url='https://forgejo.nw82.xyz/todd/keepass-sync-app'
license=('AGPL-3.0-or-later')
# What the binary links (readelf -d), the tray's library, which it
# loads at run time, and polkit for the unlock prompt.
depends=('cairo' 'dbus' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3' 'hicolor-icon-theme'
         'libayatana-appindicator' 'libgcc' 'libsoup3' 'polkit' 'webkit2gtk-4.1')
options=('!strip' '!debug')
source=('keepass-sync.deb')
sha256sums=('SKIP')
noextract=('keepass-sync.deb')

package() {
    bsdtar -xOf keepass-sync.deb 'data.tar.*' | bsdtar -xpf - -C "$pkgdir"
}
