 #!/bin/sh

_gimp2dir1=/usr/lib/gimp/2.0/plug-ins
_gimp2dir2=/opt/gnome/lib/gimp/2.0/plug-ins

pre_install() {
    if [ -x /sbin/ldconfig ]; then
        /sbin/ldconfig
    fi
    # 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_install() {
    pre_install
}
