# Maintainer: Karim <karim@gabrielevarano.ch>
#
# tanin-libadwaita — Fuji recolour for GTK4/libadwaita AND GTK3 (light + dark).
# Recolours libadwaita apps (tsettings/thub, Nautilus, …) via named Adwaita
# colors, and GTK3 apps (pavucontrol, nm-connection-editor, …) via adw-gtk3,
# with pill-shaped controls. One switch covers both toolkits:
#   tanin-libadwaita {dark|light|auto|watch}
pkgname=tanin-libadwaita
pkgver=0.1.0
pkgrel=1
pkgdesc="TANINUX Fuji recolour for GTK4/libadwaita + GTK3 — light + dark, pills"
arch=('any')
url="https://taninux.kgva.ch"
license=('GPL-3.0-or-later')
depends=('glib2' 'adw-gtk3')        # gsettings + GTK3 base theme for the recolour
optdepends=('tanin-setup: seed the variant + start the color-scheme watcher on login')

package() {
  install -Dm644 "$startdir/gtk-4.0/dark.css"  "$pkgdir/usr/share/tanin/libadwaita/gtk-4.0/dark.css"
  install -Dm644 "$startdir/gtk-4.0/light.css" "$pkgdir/usr/share/tanin/libadwaita/gtk-4.0/light.css"
  install -Dm644 "$startdir/gtk-3.0/dark.css"  "$pkgdir/usr/share/tanin/libadwaita/gtk-3.0/dark.css"
  install -Dm644 "$startdir/gtk-3.0/light.css" "$pkgdir/usr/share/tanin/libadwaita/gtk-3.0/light.css"
  install -Dm755 "$startdir/tanin-libadwaita"  "$pkgdir/usr/bin/tanin-libadwaita"
  install -Dm644 "$startdir/tanin-libadwaita.service" \
    "$pkgdir/usr/lib/systemd/user/tanin-libadwaita.service"
}
