blob: a9324b78e8027a32f0dd222f129136a754516334 (
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
|
post_install()
{
if which pycompile >/dev/null 2>&1; then
pycompile -p odio
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 odio
else
pacman -Qql odio | 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
}
|