# SPDX-License-Identifier: GPL-3.0-or-later
pkgname=meowven-hyprland
pkgver=0.1.0
pkgrel=2
pkgdesc='Meowven Hyprland desktop defaults, panel and session tools'
arch=('any')
license=('GPL-3.0-or-later')
options=('!debug')
depends=('bash' 'coreutils' 'sed' 'hyprland>=0.56' 'hyprshutdown' 'waybar' 'kitty' 'thunar' 'wofi' 'hyprshot' 'swappy' 'otf-font-awesome'
         'mako' 'hypridle' 'hyprlock' 'hyprpolkitagent' 'swaybg' 'librsvg'
         'xdg-desktop-portal-hyprland' 'xdg-desktop-portal-gtk' 'xdg-utils'
         'dbus' 'systemd' 'procps-ng' 'libnotify' 'brightnessctl'
         'networkmanager' 'wireplumber' 'pipewire-pulse' 'pavucontrol'
         'firefox' 'ttf-dejavu' 'ttf-hack-nerd' 'ttf-nerd-fonts-symbols-mono'
         'adwaita-icon-theme' 'noto-fonts' 'breeze' 'meowven-branding' 'meowven-meow>=0.1.0-2')
optdepends=('flatpak: use separately installed Steam or Discord Flatpaks')
backup=('etc/skel/.config/hypr/hyprland.lua'
        'etc/skel/.config/hypr/hypridle.conf'
        'etc/skel/.config/hypr/hyprlock.conf'
        'etc/skel/.config/waybar/config'
        'etc/skel/.config/waybar/style.css'
        'etc/skel/.config/wofi/config'
        'etc/skel/.config/wofi/style.css'
        'etc/skel/.config/kitty/kitty.conf'
        'etc/skel/.config/kitty/meowbah.conf'
        'etc/skel/.config/gtk-3.0/gtk.css'
        'etc/skel/.config/gtk-4.0/gtk.css'
        'etc/skel/.config/mako/config'
        'etc/xdg/xdg-desktop-portal/hyprland-portals.conf')
source=('KEYS.html'
        'README.md'
        'autostart'
        'gtk3.css'
        'gtk4.css'
        'hypridle.conf'
        'hyprland-portals.conf'
        'hyprland.lua'
        'hyprlock.conf'
        'kitty-meowbah.conf'
        'kitty.conf'
        'mako.conf'
        'meowven-hyprland-session.target'
        'meowven-lock'
        'meowven-optional-app'
        'meowven-screenshot'
        'meowven-session-menu'
        'meowven-wallpaper'
        'waybar.css'
        'waybar.json'
        'wofi.conf'
        'wofi.css')
sha256sums=('ffe165a68b5b00b1b37b0d95c7c0df86bf91d908d5f01c689581bfd146df1176'
            '70d036667e91c43f2279be3b1f84aefc028dceebdde9435aae45f4f8fdcb9f43'
            '07da2b3ef1b9861bb6bf15eafe6095d36cb7ff7c5d3b491e7f364a170ffafd5f'
            '7b032c3e6190ee408d8e7db2ec048d1e23ce46101fe0e4e13afa2c4a7e8cd024'
            '22e09fce276652250dfe46a13e37e827b016af9788266be3f38a06162c8c73d6'
            '49f894a42c8065b28d7f2770debf987825fbcefa68c2086da81cec99089607ff'
            '015efd4b87778520896387c203de0ba2162b384ba331ca0a72a58112f5ccdc4e'
            '62f8053b673a34d94d113aa4275b9c97e87756a6d49f389f92285a3cab75145e'
            'bb4b9d6c4444756b568a4307fb7395034f8c93cbb274afe7c20a09390099a2e5'
            'd01a38ecf258668d8b8c8d0a145d7b8f124d5e31d0ce82abb67d826a066ef77e'
            'd375ba70c6b31e98b4769f27493ad317259ccc4288911f7ee8292d0fb9230e2b'
            'c1b978648f3772530e87184920f531cff3aab0ad97228b0e79dc33972bf6f704'
            '14e56e5d42729e557ad455d547d0083ba7c32927a839a10869d87af8ea175d4a'
            '67788bd8b309a7cbe937d7e625bab595acaebff072fc8c1fd84ace19aeb096a2'
            'b1bcfc8662e51ad8e48472e4a7da57fc6c1e4d53ec712741644b49ada7a70f60'
            '7d93411096c7b37166a0b2f2067a024572481f8dd489e5699ce971a3dda510b3'
            '2fe98c18df81396b1edce1c5d3bdd3970632ba8da9cecd018b87c20e89c1d27c'
            '1a04f7ef93553295cb16d3e8dec8bb4903417d7dfb83292e301549d12ba11833'
            'bd3ea450b967bfef42889f0e32b16fbdfa58873d8a792027a0c9114d2d338244'
            'f5eb3166e36f3d729a892a12f0f1a183ac128fbdd5e0220a6db3d20a972bf099'
            '42bb490fdcbff082cb1980bf09119e1c6e65ab8dc339d625ef567690578d4889'
            '8a6964c1b47b0f8d7716fd286f19b4ad54b2a95ebd156deb256da1768552efa8')

package() {
    cd "$srcdir"
    local config="$pkgdir/etc/skel/.config"
    install -Dm644 hyprland.lua "$config/hypr/hyprland.lua"
    install -Dm644 hypridle.conf "$config/hypr/hypridle.conf"
    install -Dm644 hyprlock.conf "$config/hypr/hyprlock.conf"
    install -Dm644 waybar.json "$config/waybar/config"
    install -Dm644 waybar.css "$config/waybar/style.css"
    install -Dm644 wofi.conf "$config/wofi/config"
    install -Dm644 wofi.css "$config/wofi/style.css"
    install -Dm644 kitty.conf "$config/kitty/kitty.conf"
    install -Dm644 kitty-meowbah.conf "$config/kitty/meowbah.conf"
    install -Dm644 gtk3.css "$config/gtk-3.0/gtk.css"
    install -Dm644 gtk4.css "$config/gtk-4.0/gtk.css"
    install -Dm644 mako.conf "$config/mako/config"
    install -Dm644 hyprland-portals.conf "$pkgdir/etc/xdg/xdg-desktop-portal/hyprland-portals.conf"
    install -Dm644 meowven-hyprland-session.target "$pkgdir/usr/lib/systemd/user/meowven-hyprland-session.target"
    install -Dm755 autostart "$pkgdir/usr/lib/meowven-hyprland/autostart"
    install -Dm755 meowven-wallpaper "$pkgdir/usr/bin/meowven-wallpaper"
    install -Dm755 meowven-lock "$pkgdir/usr/bin/meowven-lock"
    install -Dm755 meowven-session-menu "$pkgdir/usr/bin/meowven-session-menu"
    install -Dm755 meowven-optional-app "$pkgdir/usr/bin/meowven-optional-app"
    install -Dm755 meowven-screenshot "$pkgdir/usr/bin/meowven-screenshot"
    install -Dm644 KEYS.html "$pkgdir/usr/share/doc/$pkgname/KEYS.html"
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
