# HG changeset patch # User Hans-G?nter Theisgen # Date 1554297894 -3600 # Node ID cfcd49f1b651f24154fc4e8f5839d49a4d06cc1d # Parent 885b9c168e8202f2a37776a47247da18890f31fa get-xnviewmp: finetuning diff -r 885b9c168e82 -r cfcd49f1b651 get-xnviewmp/stuff/get-xnviewmp --- a/get-xnviewmp/stuff/get-xnviewmp Tue Apr 02 19:11:23 2019 +0200 +++ b/get-xnviewmp/stuff/get-xnviewmp Wed Apr 03 14:24:54 2019 +0100 @@ -9,6 +9,7 @@ exit 0 fi +# Already installed? if [ -d $ROOT/var/lib/tazpkg/installed/xnviewmp ]; then [ -n "$ROOT" ] && exit 1 tazpkg remove xnviewmp @@ -21,7 +22,7 @@ WEB_SITE="https://download.xnview.com" wget --no-check-certificate ${WEB_SITE}/XnViewMP-linux.tgz if [ ! -f $TARBALL ]; then - rm -rf XnViewMP + rm -rf XnView echo "Could not download $TARBALL. Exiting." exit 1 fi @@ -52,12 +53,16 @@ mv qt.conf xnviewmp/fs/usr/lib/xnviewmp/ cp -a xnviewmp/fs/usr/share/xnviewmp/xnview.png \ xnviewmp/fs/usr/share/pixmaps +# Not all files from the tarball are owned by root +chown -R root:root xnviewmp/fs +# Not all libraries from the tarball are executable +find xnviewmp/fs -name "*.so*" -exec chmod +x {} ';' # Create command procedure cat > xnviewmp/fs/usr/bin/xnview < xnviewmp/receipt <