summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/raveos-plasma-theme.install
blob: 9cf2f8d5105d89b3f6298d2c3eeaa9569f0f7306 (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
_sddm_src="/usr/share/raveos/plasma-theme/theme-data/sddm/sddm.conf"
_sddm_dst="/etc/sddm.conf.d/raveos-theme.conf"

pre_install() {
    rm -f "$_sddm_dst"
}

pre_upgrade() {
    rm -f "$_sddm_dst"
}

post_install() {
    mkdir -p /etc/sddm.conf.d
    install -Dm644 "$_sddm_src" "$_sddm_dst"
    if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then
        /usr/lib/raveos-plasma-theme/auto-apply.sh || true
    fi
}

post_upgrade() {
    mkdir -p /etc/sddm.conf.d
    install -Dm644 "$_sddm_src" "$_sddm_dst"
    if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then
        /usr/lib/raveos-plasma-theme/auto-apply.sh || true
    fi
}

post_remove() {
    rm -f "$_sddm_dst"
}