blob: 03f6f2f7ea86f18869b93c8f3ad71d69507cd25c (
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
|
post_install() {
# diable for a while maybe we can implement something in pacman to make it faster
#echo "creating index ... this could take a up to several minutes ..."
#monodoc --make-search-index > /dev/null 2>&1
echo "update desktop mime database..."
update-desktop-database -q
}
pre_upgrade() {
echo "removing index..."
rm -f /opt/mono/lib/monodoc/monodoc.index
rm -rf /opt/mono/lib/monodoc/search_index
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
post_remove() {
echo "removing index..."
rm -f /usr/lib/monodoc/monodoc.index
rm -rf /usr/lib/monodoc/search_index
echo "update desktop mime database..."
update-desktop-database -q
}
# vim: ft=sh
|