diff options
author | Behnam Momeni | 2015-06-25 01:11:38 +0430 |
---|---|---|
committer | Behnam Momeni | 2015-06-25 01:11:38 +0430 |
commit | 13e1556258a8d8c03253b33ccbabc67e3d0b70cb (patch) | |
tree | 69c0f394c9ffd63fe2f616ec3b0b052edbb5ab7c /scangearmp-common.install | |
download | aur-13e1556258a8d8c03253b33ccbabc67e3d0b70cb.tar.gz |
Migrating scangearmp-mp550 package to AUR4
Adding lib32-gimp dependency.
Switching from sha1sums to sha512sums.
And using architecture specific vars for indicating dependencies.
Diffstat (limited to 'scangearmp-common.install')
-rw-r--r-- | scangearmp-common.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scangearmp-common.install b/scangearmp-common.install new file mode 100644 index 000000000000..d957108d4330 --- /dev/null +++ b/scangearmp-common.install @@ -0,0 +1,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*.* +} |