summarylogtreecommitdiffstats
path: root/mcomix-git.install
blob: 4ad5abf511f73b558d2b8b100fe1d7094cb4e181 (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
pkgname=mcomix

post_install() {
    if [ -f usr/bin/xdg-icon-resource ]; then
        xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    fi
    if [ -f usr/sbin/gconfpkg ]; then
        usr/sbin/gconfpkg --install ${pkgname} &> /dev/null
    fi
    update-desktop-database -q
    update-mime-database /usr/share/mime
}

pre_upgrade() {
    pre_remove $1
}

post_upgrade() {
    echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf'
    post_install $1
}

pre_remove() {
    if [ -f usr/sbin/gconfpkg ]; then
        usr/sbin/gconfpkg --uninstall ${pkgname} &> /dev/null
    fi
}

post_remove() {
    if [ -f usr/bin/xdg-icon-resource ]; then
        xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    fi
    update-desktop-database -q
    update-mime-database /usr/share/mime &> /dev/null
}