blob: bb1ba6062858e034b5ece5be26cee65c4b36a442 (
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
|
post_install()
{
if which pycompile >/dev/null 2>&1; then
pycompile -p ayatana-webmail
fi
gtk-update-icon-cache -q -f usr/share/icons/hicolor
update-desktop-database -q
glib-compile-schemas usr/share/glib-2.0/schemas
}
post_upgrade()
{
post_install
}
pre_remove()
{
if which pyclean >/dev/null 2>&1; then
pyclean -p ayatana-webmail
else
pacman -Qql ayatana-webmail | grep '\.py$' | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
}
post_remove()
{
gtk-update-icon-cache -q -f usr/share/icons/hicolor
update-desktop-database -q
glib-compile-schemas usr/share/glib-2.0/schemas
}
|