summaryrefslogtreecommitdiff
path: root/raveos-cosmic-theme/PKGBUILD
blob: c1a76e2bb067af425227ba8760185fd3a5d5ecfd (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
# Maintainer: nippy <nippy@tuta.io>

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

depends=('fastfetch' 'raveos-sddm-theme')

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

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

package() {
    install -dm755 "${pkgdir}/usr/share/backgrounds/raveos"
    install -Dm644 "${startdir}/theme-data/background" \
        "${pkgdir}/usr/share/backgrounds/raveos/raveos-main-bg.jpeg"

    install -Dm644 "${startdir}/theme-data/system/raveos-logo.svg" \
        "${pkgdir}/usr/share/pixmaps/raveos-logo.svg"
    install -Dm644 "${startdir}/theme-data/system/raveos-logo.svg" \
        "${pkgdir}/usr/share/icons/hicolor/scalable/apps/raveos-logo.svg"

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

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

    install -Dm755 "${startdir}/raveos-cosmic-apply.sh" \
        "${pkgdir}/usr/lib/raveos-cosmic-theme/auto-apply.sh"

    install -Dm755 "${startdir}/raveos-cosmic-first-login.sh" \
        "${pkgdir}/usr/lib/raveos-cosmic-theme/first-login.sh"

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

    install -Dm644 "${startdir}/raveos-cosmic-first-login.desktop" \
        "${pkgdir}/etc/xdg/autostart/raveos-cosmic-first-login.desktop"
}