blob: eb84501df81859d104dffa9c6150cbedcdbdf08a (
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
|
# Maintainer: RaveOS Team
#
# raveos-cosmic-theme
# -------------------
# COSMIC DE téma csomag: kitty, fastfetch, COSMIC terminal konfig,
# háttérkép, SDDM téma.
#
# Az apply script (raveos-cosmic-theme-apply.service) boot-kor fut és
# bemásolja a theme-data tartalmát /etc/skel-be és minden meglévő
# user home-jába.
pkgname=raveos-cosmic-theme
pkgver=0.0.0
pkgrel=10
pkgdesc="RaveOS Cosmic theme payload and installer"
arch=('any')
url="https://raveos.local"
license=('custom')
conflicts=('raveos-hyprland-theme' 'raveos-gnome-theme')
depends=('fastfetch')
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: kitty, fastfetch, COSMIC konfig stb.
install -dm755 "${pkgdir}/usr/share/raveos/cosmic-theme"
cp -r --no-preserve=ownership "${startdir}/theme-data" \
"${pkgdir}/usr/share/raveos/cosmic-theme/"
# SDDM téma: rendszerszintű telepítés, SDDM innen olvassa
install -dm755 "${pkgdir}/usr/share/sddm/themes"
cp -r "${startdir}/theme-data/sddm/sddm-rave-theme" \
"${pkgdir}/usr/share/sddm/themes/sddm-rave-theme"
# SDDM konfig: post_install/post_upgrade hook telepíti (nem itt, hogy
# elkerüljük a pacman "conflicting files" hibát az unowned fájloknál)
# apply script: boot-kor futó installer (systemd service hívja)
install -Dm755 "${startdir}/raveos-cosmic-apply.sh" \
"${pkgdir}/usr/lib/raveos-cosmic-theme/auto-apply.sh"
# first-login script: első bejelentkezéskor fut (XDG autostart)
install -Dm755 "${startdir}/raveos-cosmic-first-login.sh" \
"${pkgdir}/usr/lib/raveos-cosmic-theme/first-login.sh"
# systemd service: egyszer fut (ConditionPathExists=!.applied guard)
install -Dm644 "${startdir}/raveos-cosmic-theme-apply.service" \
"${pkgdir}/usr/lib/systemd/system/raveos-cosmic-theme-apply.service"
# XDG autostart: first-login script indítása
install -Dm644 "${startdir}/raveos-cosmic-first-login.desktop" \
"${pkgdir}/etc/xdg/autostart/raveos-cosmic-first-login.desktop"
}
|