FIXUPHACK 849 B

12345678910111213141516171819202122232425
  1. FNDKONICAEN="$(find usr/share/libgphoto2 -mindepth 2 -maxdepth 3 -type f -name 'english' | head -n 1)"
  2. if [ "$FNDKONICAEN" ];then
  3. DIRKONICA="$(dirname $FNDKONICAEN)"
  4. mv -f ${DIRKONICA}/english /tmp/english-konica
  5. rm -f usr/share/libgphoto2/*/konica/*
  6. mv -f /tmp/english-konica ${DIRKONICA}/english
  7. fi
  8. if [ ! -e usr/lib/libgphoto2.so.2 ];then
  9. FNDLIBGPHOT="$(find usr/lib -mindepth 1 -maxdepth 1 -type f -name 'libgphoto2.so.*' | head -n 1)"
  10. if [ "$FNDLIBGPHOT" ];then
  11. BASELIBGPHOT="$(basename $FNDLIBGPHOT)"
  12. ln -s $BASELIBGPHOT usr/lib/libgphoto2.so.2
  13. fi
  14. fi
  15. if [ ! -e usr/lib/libgphoto2_port.so.0 ];then
  16. FNDLIBGPHOT="$(find usr/lib -mindepth 1 -maxdepth 1 -type f -name 'libgphoto2_port.so.*' | head -n 1)"
  17. if [ "$FNDLIBGPHOT" ];then
  18. BASELIBGPHOT="$(basename $FNDLIBGPHOT)"
  19. ln -s $BASELIBGPHOT usr/lib/libgphoto2_port.so.0
  20. fi
  21. fi