# Maintainer: Karim <karim@gabrielevarano.ch>
#
# tanin-greet — TANINUX custom GTK4 greeter for greetd. Black top bar like the
# eww topbar, wallpaper background, user+password centered, session in a corner.
# After install:  systemctl enable greetd   (disable any other DM first)
pkgname=tanin-greet
pkgver=0.1.0
pkgrel=1
pkgdesc="TANINUX login — custom GTK4 greeter for greetd (mirrors the topbar)"
arch=('any')
url="https://taninux.kgva.ch"
license=('GPL-3.0-or-later')
depends=('greetd' 'cage' 'gtk4' 'python' 'python-gobject'
         'adwaita-icon-theme' 'inter-font')
optdepends=('tanin-backgrounds: default login wallpaper at /usr/share/backgrounds/tanin/login.jpg')
backup=('etc/greetd/config.toml' 'etc/greetd/tanin-greet.css')

package() {
  install -Dm755 "$startdir/tanin-greet"      "$pkgdir/usr/bin/tanin-greet"
  install -Dm644 "$startdir/tanin-greet.css"  "$pkgdir/etc/greetd/tanin-greet.css"
  install -Dm644 "$startdir/config.toml"      "$pkgdir/etc/greetd/config.toml"
  # The greeter reads its CSS from /etc/greetd by default; no wallpaper is
  # shipped here (provide one at /usr/share/backgrounds/tanin/login.jpg, e.g.
  # via a tanin-backgrounds package — the greeter falls back to a dark scrim).
}
