# Maintainer: Karim <karim@gabrielevarano.ch>
#
# Metapackage: pulls the complete TANINUX (camel) desktop — niri + eww, managed
# by the TANINUX apps. Own packages come from the [tanin] repo, everything else
# from the official Arch repos. AUR-only runtime deps (eww, tiramisu, waypaper,
# cliphist) are rebuilt into [tanin] so this never hard-depends on the AUR.
# Calamares just installs this package at the end.
pkgname=tanin-desktop
pkgver=0.2.0
pkgrel=1
pkgdesc="TANINUX desktop — metapackage pulling the full niri/eww environment"
arch=('any')
url="https://taninux.kgva.ch"
license=('GPL-3.0-or-later')

depends=(
  # --- own packages ([tanin] repo) ---
  'taninux'                       # System Settings + Software Hub + TUI
  'tanin-greet'                   # greetd greeter (GTK4, Fuji topbar)
  'tanin-libadwaita'              # Fuji recolour for GTK4/libadwaita + GTK3
  'tanin-eww'                     # eww bar/dock/panels + niri config -> /usr/share/tanin/skel
  'tanin-setup'                   # seeds ~/.config + session portal on first run

  # --- compositor + login ---
  'niri'                          # Wayland compositor (niri-only)
  'greetd'                        # display manager (greeter = tanin-greet)
  'cage'                          # kiosk compositor hosting the greeter

  # --- session portals ---
  'xdg-desktop-portal'
  'xdg-desktop-portal-gtk'         # Settings/Appearance portal (dark mode!)
  'xdg-desktop-portal-gnome'       # screencast backend recommended for niri

  # --- shell / eww stack (eww, tiramisu, waypaper, cliphist via [tanin]) ---
  'eww'                            # bar/dock/panels/spotlight
  'tiramisu'                       # headless notification daemon -> eww UI
  'waypaper'                       # wallpaper (niri autostart: waypaper --restore)
  'cliphist'                       # clipboard history for Spotlight

  # --- terminal + CLI used by the bar/scripts ---
  'foot' 'jq' 'wl-clipboard' 'xdg-utils' 'libqalculate'   # libqalculate -> qalc
  'grim' 'slurp'                   # screenshots

  # --- connectivity / audio / hardware ---
  'networkmanager' 'bluez' 'bluez-utils'
  'pipewire' 'pipewire-pulse' 'wireplumber'   # wpctl / pactl
  'brightnessctl' 'playerctl'

  # --- packages / updates ---
  'flatpak' 'pacman-contrib'       # checkupdates / paccache

  # --- theming / fonts ---
  'adw-gtk3'                       # GTK3 base theme tanin-libadwaita recolours
  'adwaita-icon-theme' 'papirus-icon-theme'
  'inter-font' 'ttf-iosevka-nerd'  # UI font + nf-md-* glyphs (verify pkg name)
)

optdepends=(
  'paru: AUR support in the Software Hub (opt-in)'
  'wlsunset: night light'
  'cups: printer management'
  'timeshift: system snapshots/backups'
  'waybar: fallback bar if eww is missing (launch.sh falls back to it)'
)

# Metapackage — no files of its own.
package() {
  :
}
