3757b13800
greetd owns /etc/greetd/config.toml, so ship our config to /usr/share/tanin/greetd/ and activate it from a post_install/post_upgrade scriptlet (with a one-time backup). Fixes the pacman file conflict. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
1.4 KiB
Bash
29 lines
1.4 KiB
Bash
# 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=2
|
|
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/tanin-greet.css')
|
|
install=tanin-greet.install
|
|
|
|
package() {
|
|
install -Dm755 "$startdir/tanin-greet" "$pkgdir/usr/bin/tanin-greet"
|
|
install -Dm644 "$startdir/tanin-greet.css" "$pkgdir/etc/greetd/tanin-greet.css"
|
|
# greetd already owns /etc/greetd/config.toml, so we can't package that path.
|
|
# Ship it as a template; the .install scriptlet activates it (with a backup).
|
|
install -Dm644 "$startdir/config.toml" "$pkgdir/usr/share/tanin/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).
|
|
}
|