summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/PKGBUILD
blob: a9310cc20d36e0be9c59173b40496b819068334c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Maintainer: nippy <nippy@tuta.io>

pkgname=raveos-hyprland-theme
pkgver=1.0.0
pkgrel=1
pkgdesc="RaveOS Hyprland theme payload and installer"
arch=('any')
url="https://raveos.local"
license=('custom')
options=('!debug')
conflicts=('raveos-cosmic-theme' 'raveos-gnome-theme' 'raveos-plasma-theme')

depends=(
    'dms-shell-hyprland'
    'matugen'
    'socat'
    'raveswitch'
    'polkit-gnome'
    'hyprshot'
    'qt6ct'
    'kvantum'
    'raveos-sddm-theme'
    'fastfetch'
    'wl-clipboard'
    'cliphist'
    'kitty'
    'amdgpu_top'
    'nvtop'
    'intel-gpu-tools'
)

install="${pkgname}.install"
source=()
sha256sums=()

BUILDDIR="${startdir}/build"
PKGDEST="${startdir}/build"
SRCDEST="${startdir}/build"
SRCPKGDEST="${startdir}/build"
LOGDEST="${startdir}/build"

package() {
    # Alapértelmezett háttérkép
    install -dm755 "${pkgdir}/usr/share/backgrounds/raveos"
    install -Dm644 "${startdir}/theme-data/background.jpg" \
        "${pkgdir}/usr/share/backgrounds/raveos/raveos-main-bg.jpeg"
    install -Dm644 "${startdir}/theme-data/background.jpg" \
        "${pkgdir}/usr/share/backgrounds/raveos/background.jpg"

    # Rendszer szintű ikonok és GTK téma
    install -dm755 "${pkgdir}/usr/share/icons"
    install -dm755 "${pkgdir}/usr/share/themes"
    cp -r --no-preserve=ownership "${startdir}/theme-data/skel/.icons/Adwaitaru-olive" \
        "${pkgdir}/usr/share/icons/"
    cp -r --no-preserve=ownership "${startdir}/theme-data/skel/.themes/Yaru-olive-dark" \
        "${pkgdir}/usr/share/themes/"

    # SDDM profilképek könyvtára
    install -dm755 "${pkgdir}/usr/share/sddm/faces"

    # Fastfetch profil script
    install -Dm755 "${startdir}/theme-data/profile.d/raveos-fastfetch.sh" \
        "${pkgdir}/etc/profile.d/raveos-fastfetch.sh"

    # Session init script első bejelentkezéshez
    install -Dm755 "${startdir}/raveos-session-init.sh" \
        "${pkgdir}/etc/profile.d/raveos-session-init.sh"

    # Theme payload
    install -dm755 "${pkgdir}/usr/share/raveos/hyprland-theme"
    cp -r --no-preserve=ownership "${startdir}/theme-data" \
        "${pkgdir}/usr/share/raveos/hyprland-theme/"

    # Auto-apply script és systemd service
    install -Dm755 "${startdir}/raveos-hyprland-apply.sh" \
        "${pkgdir}/usr/lib/raveos-hyprland-theme/auto-apply.sh"

    install -Dm644 "${startdir}/raveos-hyprland-theme-apply.service" \
        "${pkgdir}/usr/lib/systemd/system/raveos-hyprland-theme-apply.service"
}