updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / iscan / iscan.install
blob915eb79d98bd6e38381df4f65cb83c466c1c8c97
1 DLL_CONF="/etc/sane.d/dll.conf"
2 EPKOWA_CONF="/etc/sane.d/epkowa.conf"
3 #GIMP_PLUGIN_DIR="/usr/lib/gimp/2.0/plug-ins"
5 post_install() {
6   # enable the 'epkowa' backend
7   if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then
8       echo "==> Please edit ${EPKOWA_CONF} to suit your needs."
9   else
10       echo "epkowa" >> ${DLL_CONF}
11       echo "==> A new entry 'epkowa' was added to ${DLL_CONF}"
12       echo "==> Please edit ${EPKOWA_CONF} to suit your needs."
13   fi
15   # link iscan so it's seen as a GIMP plugin
16 #   mkdir -p ${GIMP_PLUGIN_DIR}
17 #   ln -s /usr/bin/iscan ${GIMP_PLUGIN_DIR}
18 #   echo "==> Added iscan as a GIMP plugin."
20   echo "==> Add your user to 'scanner' group to use scanner/all-in-ones devices."
21   echo "==> For more info and help see 'man sane-epkowa', 'man sane-scsi' and 'man sane-usb'"
22   echo "==> Also see: https://wiki.archlinux.org/index.php/Sane"
25 post_remove() {
26   sed -i 's/epkowa//g' ${DLL_CONF}
27 #   rm -f ${GIMP_PLUGIN_DIR}/iscan
30 # vim:set ts=2 sw=2 et: