summarylogtreecommitdiffstats
path: root/scangearmp-common.install
blob: d957108d433093b07a3f4087e643533f4aa17ec7 (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
post_install() {
	if [ -x /sbin/ldconfig ]; then
	  /sbin/ldconfig /usr/lib32
	fi
	_gimp2dir1=/usr/lib/gimp/2.0/plug-ins
	_gimp2dir2=/opt/gnome/lib/gimp/2.0/plug-ins
	# make symbolic link for gimp-plug-in
	if [ -d ${_gimp2dir1} ]; then
	  ln -fs /usr/bin/scangearmp ${_gimp2dir1}/scangearmp
	elif [ -d ${_gimp2dir2} ]; then
	  ln -fs /usr/bin/scangearmp ${_gimp2dir2}/scangearmp
	fi
}
post_upgrade() {
	if [ -x /sbin/ldconfig ]; then
	  /sbin/ldconfig /usr/lib32
	fi
}
post_remove() {
	if [ -x /sbin/ldconfig ]; then
	  /sbin/ldconfig /usr/lib32
	fi
	_gimp2dir1=/usr/lib/gimp/2.0/plug-ins
	_gimp2dir2=/opt/gnome/lib/gimp/2.0/plug-ins
	
	# remove symbolic link for gimp-plug-in
	rm -f ${_gimp2dir1}/scangearmp
	rm -f ${_gimp2dir2}/scangearmp
	# remove sgmp_setting files
	rm -f /tmp/canon_sgmp_setting*.*
}