# Maintainer: Joey Yakimowich-Payne <jyapayne@pm.me>
#
# The complete BlueRune desktop: the shell and its session, the portals, clipboard history,
# the login screen, and the apps a new user needs on day one. A meta-package: it installs
# nothing of its own. The BlueRune package repository serves it (`curl -fsSL
# https://bluerune.dev/install | bash`); to build it by hand, build bluerune-git first
# (../PKGBUILD), which provides bluerune, then this, with `makepkg -si` in this directory.
# docs/install.md has the rest.

pkgname=bluerune-desktop
pkgver=4
pkgrel=1
pkgdesc='The complete BlueRune desktop: the BlueRune session, portals, clipboard history, login screen and core apps'
arch=('any')
url='https://git.joeypayne.com/jyapayne/bluerune'
license=('Apache-2.0 OR MIT')
depends=(
  # The shell, with its session, its own login screen (bluerune-greeter) and Hyprland
  # config: the release package, or bluerune-git, which provides it.
  'bluerune'
  # The key the BlueRune repository's packages are signed with, kept up to date.
  'bluerune-keyring'
  # Which Arch updates come: held at BlueRune's tested date, or followed directly
  # (bluerune-updates, /etc/bluerune/updates.conf), and a warning before an untested
  # Hyprland. It changes nothing pacman installs until pacman.conf reads its list, which the
  # installer and the ISO's image do.
  'bluerune-mirrorlist'
  # Sharing and screenshots for apps (grim takes the portal's screenshots), and the file
  # chooser (dist/portals/bluerune-portals.conf).
  'xdg-desktop-portal-hyprland'
  'xdg-desktop-portal-gtk'
  'grim'
  # Clipboard history in the launcher.
  'cliphist'
  'wl-clipboard'
  # Color emoji for the launcher's emoji picker, and for apps.
  'noto-fonts-emoji'
  # BlueRune's login screen (bluerune-greeter, in bluerune) runs on greetd. Installing it
  # changes nothing on a system that has a login screen: bluerune-setup enables it only where
  # none starts at boot, and Settings > Login screen switches to it.
  'greetd'
  # The core apps (PLAN.md, Phase 9), made the defaults by the welcome window (or
  # `bluerunectl apps defaults`): files, archives, terminal, video and music, text. BlueRune's
  # own calculator, image viewer (the pictures default) and system monitor come with
  # bluerune.
  'dolphin'
  'ark'
  'kitty'
  'mpv'
  # Mousepad: GTK 3, so it takes BlueRune's colors through the GTK pass like the rest; it
  # starts instantly, and it is an editor, not an IDE. Kate would pull in KTextEditor and
  # KDE's framework stack for features a desktop default doesn't need; GNOME Text Editor is
  # libadwaita, which ignores GTK themes.
  'mousepad'
  # Qt apps (Dolphin, Ark) themed without Plasma: the base config picks qt6ct when Plasma's
  # platform theme isn't installed, and archlinux-xdg-menu gives Dolphin's "Open with" its
  # list of apps. Breeze is their widget style and, with breeze-icons, the icon theme of
  # every toolkit (Settings › Appearance), in its light or dark variant.
  'qt6ct'
  'archlinux-xdg-menu'
  'breeze'
  'breeze-icons'
  # Adwaita-dark for GTK 3 apps (gtk3 has only the light Adwaita): BlueRune switches GTK 3
  # apps to it live in dark mode, GTK's own file chooser among them, where an app uses it.
  'gnome-themes-extra'
  # The shell's own screen and region recording (the bar's record button, the region
  # selector), which the bar's sharing indicator can stop.
  'wf-recorder'
  # The Store (bluerune-store, in bluerune): Arch's packages through PackageKit (its polkit
  # prompts, no root code of ours), their AppStream metadata, and Flathub through Flatpak.
  'packagekit'
  'archlinux-appstream-data'
  'flatpak'
)
optdepends=(
  "sddm: SDDM as the login screen instead, with BlueRune's theme (Settings > Login screen)"
  "bluerune-nvim: Neovim as the text editor instead, ready to use in BlueRune's colors (Settings > Default apps)"
  'ffmpegthumbs: video thumbnails in Dolphin'
  'kdegraphics-thumbnailers: PDF thumbnails in Dolphin'
  'kde-cli-tools: change file type options from Dolphin and Ark'
  '7zip: 7z archives in Ark beyond what libarchive reads, and making them'
  'unrar: RAR archives in Ark'
)
install=bluerune-desktop.install
