# Maintainer: RaveOS Team # # raveos-hyprland-theme # --------------------- # Hyprland DE téma csomag: Lua konfig, DankMaterialShell (DMS) shell, hyprshell # ablakváltó, SDDM téma, kitty, fastfetch, GTK/ikontémák. # # Az install script (raveos-hyprland-apply.service) egyszer fut boot-kor és # bemásolja a theme-data tartalmát /etc/skel-be és minden meglévő user home-jába. pkgname=raveos-hyprland-theme pkgver=0.0.0 pkgrel=48 pkgdesc="RaveOS Hyprland theme payload and installer (includes DankMaterialShell)" arch=('any') url="https://raveos.local" license=('custom') conflicts=('raveos-cosmic-theme' 'raveos-gnome-theme') # Futáshoz szükséges csomagok depends=( 'dms-shell-hyprland' # DankMaterialShell - a fő panel/shell 'matugen' # wallpaper-alapú színséma generátor (matugen image ...) 'socat' # hyprshell socket kommunikációhoz (keybinds) 'hyprshell' # Alt+Tab ablakváltó overlay 'hyprpaper' # háttérkép daemon 'polkit-gnome' # polkit auth agent (GUI sudo kérések) ) # Opcionális csomagok optdepends=( 'fastfetch: terminál üdvözlő (profile.d script indítja)' 'wl-clipboard: wl-paste (clipboard pipeline)' 'cliphist: clipboard history store' 'kitty: alapértelmezett terminál' ) install="${pkgname}.install" source=() sha256sums=() # Build könyvtárak az src mellé, ne a makepkg alapértelmezettbe BUILDDIR="${startdir}/build" PKGDEST="${startdir}/build" SRCDEST="${startdir}/build" SRCPKGDEST="${startdir}/build" LOGDEST="${startdir}/build" package() { # theme-data payload: hypr konfig, DMS config, kitty, fastfetch, SDDM conf, GTK, stb. install -dm755 "${pkgdir}/usr/share/raveos/hyprland-theme" cp -r --no-preserve=ownership "${startdir}/theme-data" \ "${pkgdir}/usr/share/raveos/hyprland-theme/" # SDDM téma: rendszerszintű telepítés, SDDM innen olvassa install -dm755 "${pkgdir}/usr/share/sddm/themes/sddm-rave-theme" find "${startdir}/theme-data/sddm/sddm-rave-theme" -type f | while read -r f; do rel="${f#${startdir}/theme-data/sddm/sddm-rave-theme/}" dir=$(dirname "$rel") install -dm755 "${pkgdir}/usr/share/sddm/themes/sddm-rave-theme/${dir}" install -Dm644 "$f" "${pkgdir}/usr/share/sddm/themes/sddm-rave-theme/${rel}" done # SDDM konfig: NEM itt telepítjük, hanem post_install/post_upgrade hook-ból, # mert ha az unowned fájl már létezik, a pacman ütközés-ellenőrzése ELŐBB fut # mint a pre_upgrade() hook, és blokkolja a tranzakciót. # apply script: boot-kor futó installer (systemd service hívja) install -Dm755 "${startdir}/raveos-hyprland-apply.sh" \ "${pkgdir}/usr/lib/raveos-hyprland-theme/auto-apply.sh" # systemd system service: egyszer fut (ConditionPathExists=!.applied guard) install -Dm644 "${startdir}/raveos-hyprland-theme-apply.service" \ "${pkgdir}/usr/lib/systemd/system/raveos-hyprland-theme-apply.service" # session init script: user login után fut (háttérkép + GTK téma) install -Dm755 "${startdir}/raveos-hyprland-session-init.sh" \ "${pkgdir}/usr/lib/raveos-hyprland-theme/session-init.sh" # systemd user service: graphical-session.target-ben indul install -Dm644 "${startdir}/raveos-hyprland-session-init.service" \ "${pkgdir}/usr/lib/systemd/user/raveos-hyprland-session-init.service" }