updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / smileol / smileol.install
bloba92a4f40971e567fafc30f5d1015f5a19635357e
1 dir="/opt/smileol"
2 pkgname="smileol"
4 pre_install() {
5     pre_remove
8 post_install() {
9   # Test PSI
10     if test -d /usr/share/psi/iconsets/emoticons ; then
11       ln -s ${dir}/${pkgname}.jisp /usr/share/psi/iconsets/emoticons/
12     fi
13   # Test PSI+
14     if test -d /usr/share/psi-plus/iconsets/emoticons ; then
15       ln -s ${dir}/${pkgname}.jisp /usr/share/psi-plus/iconsets/emoticons/
16     fi
17   # Test Gajim
18     if test -d usr/share/gajim/data/emoticons ; then
19       ln -s ${dir}/${pkgname} /usr/share/gajim/data/emoticons/
20     fi
21   # Test Pidgin
22     if test -d usr/share/pixmaps/pidgin/emotes/ ; then
23       ln -s ${dir}/${pkgname} /usr/share/pixmaps/pidgin/emotes/
24     fi
27 pre_upgrade() {
28     pre_remove
31 post_upgrade() {
32     post_install
35 pre_remove() {
37   # Test PSI
38     if test -L /usr/share/psi/iconsets/emoticons/${pkgname}.jisp ; then
39       rm /usr/share/psi/iconsets/emoticons/${pkgname}.jisp
40     fi
41     if test -e /usr/share/psi/iconsets/emoticons/${pkgname}.jisp ; then
42       rm /usr/share/psi/iconsets/emoticons/${pkgname}.jisp
43     fi
45   # Test PSI+
46     if test -L /usr/share/psi-plus/iconsets/emoticons/${pkgname}.jisp ; then
47       rm /usr/share/psi-plus/iconsets/emoticons/${pkgname}.jisp
48     fi
49     if test -e /usr/share/psi-plus/iconsets/emoticons/${pkgname}.jisp ; then
50       rm /usr/share/psi-plus/iconsets/emoticons/${pkgname}.jisp
51     fi
53   # Test Gajim
54     if test -L /data/emoticons/${pkgname} ; then
55       rm -fr /usr/share/gajim/data/emoticons/${pkgname}
56     fi
57     if test -e /usr/share/gajim/data/emoticons/${pkgname} ; then
58       rm -fr /usr/share/gajim/data/emoticons/${pkgname}
59     fi
61   # Test Pidgin
62     if test -L /usr/share/pixmaps/pidgin/emotes/${pkgname} ; then
63       rm -fr /usr/share/pixmaps/pidgin/emotes/${pkgname}
64     fi
65     if test -e /usr/share/pixmaps/pidgin/emotes/${pkgname} ; then
66       rm -fr /usr/share/pixmaps/pidgin/emotes/${pkgname}
67     fi
72