# CI package recipe for the Souveraine quickshell config.
#
# surfaces/quickshell/deploy.sh composes the shell into a scratch HOME
# (repo files symlinked in, ii dirs borrowed from the ii-base pin), and CI
# tars that tree dereferenced. This package ships the composed result to
# /etc/xdg/quickshell/souveraine, so a device gets the shell through pacman
# instead of hand-copied files. A writable copy in ~/.config/quickshell
# shadows it (the live overlay stays deploy.sh's).
pkgname=souveraine-shell
pkgver="${SOUVERAINE_PKGVER:?CI must set SOUVERAINE_PKGVER}"
pkgrel=1
pkgdesc="The Souveraine quickshell config, composed and package-owned"
arch=('any')
url='https://gitea.wiuf.net/Fimeg/souveraine'
license=('GPL-3.0-or-later')
depends=('quickshell')
options=('!debug')
source=('souveraine-shell-config.tar.zst' 'LICENSE')
b2sums=('SKIP' 'SKIP')
package() {
  install -d "$pkgdir/etc/xdg/quickshell"
  bsdtar -xf "$srcdir/souveraine-shell-config.tar.zst" \
    -C "$pkgdir/etc/xdg/quickshell"
  install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
