28 lines
1.8 KiB
Shell
28 lines
1.8 KiB
Shell
# 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"
|
|
}
|