This commit is contained in:
Jorijn van der Graaf 2026-11-01 18:35:23 +01:00
commit 1ea50c50bc
62 changed files with 9982 additions and 608 deletions

28
packaging/arch/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# SPDX-License-Identifier: LGPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
#
# The system half of nostro for Arch Linux: nostrod's user, its D-Bus and polkit policies, its systemd unit and the
# nostro command. nostrod and the CLI come from the net.catcrafts.Nostro Flatpak, installed system-wide
# (nostro-system.install says how). pacman's hooks create the user and reload systemd and D-Bus.
# Build in this directory: makepkg -si
pkgname=nostro-system
pkgver=0.1.0
pkgrel=1
pkgdesc="System files for nostro, a banking client for Linux whose daemon runs from a Flatpak"
arch=(any)
license=(LGPL-3.0-only)
depends=(dbus flatpak polkit systemd)
install=nostro-system.install
package() {
local system="$startdir/../system"
install -Dm644 "$system/nostro.sysusers" "$pkgdir/usr/lib/sysusers.d/nostro.conf"
install -Dm644 "$system/net.catcrafts.Nostro1.conf" "$pkgdir/usr/share/dbus-1/system.d/net.catcrafts.Nostro1.conf"
install -Dm644 "$system/net.catcrafts.Nostro1.service" "$pkgdir/usr/share/dbus-1/system-services/net.catcrafts.Nostro1.service"
install -Dm644 "$system/net.catcrafts.Nostro1.Checkout.service" "$pkgdir/usr/share/dbus-1/system-services/net.catcrafts.Nostro1.Checkout.service"
install -Dm644 "$system/net.catcrafts.Nostro1.policy" "$pkgdir/usr/share/polkit-1/actions/net.catcrafts.Nostro1.policy"
install -Dm644 "$system/nostrod.service" "$pkgdir/usr/lib/systemd/system/nostrod.service"
install -Dm755 "$system/nostro" "$pkgdir/usr/bin/nostro"
install -Dm644 "$startdir/../dbus/net.catcrafts.Nostro1.xml" "$pkgdir/usr/share/dbus-1/interfaces/net.catcrafts.Nostro1.xml"
install -Dm644 "$startdir/../dbus/net.catcrafts.Nostro1.Checkout.xml" "$pkgdir/usr/share/dbus-1/interfaces/net.catcrafts.Nostro1.Checkout.xml"
}

View file

@ -0,0 +1,21 @@
# SPDX-License-Identifier: LGPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
post_install() {
echo "nostrod and the nostro CLI come from a Flatpak; install it system-wide:"
echo " flatpak install --system net.catcrafts.Nostro.flatpakref"
echo "(packaging/flatpak/ in nostro's source), or from a local build: flatpak install --system <repo> net.catcrafts.Nostro"
}
post_upgrade() {
# A nostrod still running keeps the old files until it ends.
systemctl try-restart nostrod.service
}
pre_remove() {
systemctl stop nostrod.service
}
post_remove() {
echo "The bank connections stay in /var/lib/nostro; remove that directory to forget them, and revoke the API keys in the bank's app."
}