summaryrefslogtreecommitdiff
path: root/pcr/ibus-bogo/install
blob: 0ed8986d0c4c3490c1d382f94a865544e3a55634 (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
38
39
40
post_install () {

	glib-compile-schemas /usr/share/glib-2.0/schemas
	
	}

pre_upgrade () {
	
	cd /usr/share
	if [ -d ibus-bogo ]; then
		rm -rf ibus-bogo/*
	fi
	
	cd /usr/share/ibus/component/
	if [ -f bogo.xml ]; then
		rm bogo.xml
	fi
	
	cd /usr/lib/python2.7/site-packages/
	if [ -d BoGo ]; then
		rm -rf BoGo/*
	fi
	
	for i in `ls /usr/lib | grep bogo`; do
		rm -rf /usr/lib/$i
	done
	
	}
	
post_upgrade () {

	glib-compile-schemas /usr/share/glib-2.0/schemas
	
	}
	
post_remove () {

	glib-compile-schemas /usr/share/glib-2.0/schemas
	
	}