summarylogtreecommitdiffstats
path: root/klickity.install
blob: bcf6601203a1c4f54e8df8f197cb043020ae5256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname="klickity"

pkg_install() {
    # Enable systemd user service
    if [ -f "$pkgdir/usr/lib/systemd/user/klickity.service" ]; then
        systemctl --user enable klickity.service 2>/dev/null || true
    fi
}

pkg_upgrade() {
    # Reload systemd daemon after upgrade
    systemctl --user daemon-reload 2>/dev/null || true
    
    # Restart service if running
    if systemctl --user is-active --quiet klickity.service; then
        systemctl --user restart klickity.service
    fi
}

pkg_remove() {
    # Disable systemd user service
    systemctl --user disable klickity.service 2>/dev/null || true
}