wok-6.x rev 21184

get-xnviewmp: finetuning
author Hans-G?nter Theisgen
date Wed Apr 03 14:24:54 2019 +0100 (2019-04-03)
parents 885b9c168e82
children 97cea0db1214
files get-xnviewmp/stuff/get-xnviewmp
line diff
     1.1 --- a/get-xnviewmp/stuff/get-xnviewmp	Tue Apr 02 19:11:23 2019 +0200
     1.2 +++ b/get-xnviewmp/stuff/get-xnviewmp	Wed Apr 03 14:24:54 2019 +0100
     1.3 @@ -9,6 +9,7 @@
     1.4  	exit 0
     1.5  fi
     1.6  
     1.7 +# Already installed?
     1.8  if [ -d $ROOT/var/lib/tazpkg/installed/xnviewmp ]; then
     1.9    [ -n "$ROOT" ] && exit 1
    1.10    tazpkg remove xnviewmp
    1.11 @@ -21,7 +22,7 @@
    1.12  WEB_SITE="https://download.xnview.com"
    1.13  wget --no-check-certificate ${WEB_SITE}/XnViewMP-linux.tgz
    1.14  if [ ! -f $TARBALL ]; then
    1.15 -	rm -rf XnViewMP
    1.16 +	rm -rf XnView
    1.17  	echo "Could not download $TARBALL. Exiting."
    1.18  	exit 1
    1.19  fi
    1.20 @@ -52,12 +53,16 @@
    1.21  mv qt.conf	xnviewmp/fs/usr/lib/xnviewmp/
    1.22  cp -a xnviewmp/fs/usr/share/xnviewmp/xnview.png	\
    1.23  		xnviewmp/fs/usr/share/pixmaps
    1.24 +# Not all files from the tarball are owned by root
    1.25 +chown -R root:root xnviewmp/fs
    1.26 +# Not all libraries from the tarball are executable
    1.27 +find xnviewmp/fs -name "*.so*" -exec chmod +x {} ';'
    1.28  
    1.29  # Create command procedure
    1.30  cat > xnviewmp/fs/usr/bin/xnview <<EOT
    1.31  #!/bin/sh
    1.32 -LD_LIBRARY_PATH=/usr/lib/xnviewmp/lib
    1.33 -export LD_LIBRARY_PATH
    1.34 +export LD_LIBRARY_PATH=/usr/lib/xnviewmp/lib
    1.35 +export QT_PLUGIN_PATH=/usr/lib/xnviewmp/lib
    1.36  /usr/share/xnviewmp/xnview
    1.37  EOT
    1.38  chmod +x xnviewmp/fs/usr/bin/xnview
    1.39 @@ -77,14 +82,15 @@
    1.40  EOT
    1.41  
    1.42  # Create pseudo package recipe
    1.43 -# Version is correct as on 2019-04-02
    1.44 +# Version is correct as on 2019-04-03
    1.45 +# Is there no way to retrieve the version from the tarball?
    1.46  cat > xnviewmp/receipt <<EOT
    1.47  PACKAGE="xnviewmp"
    1.48 -VERSION="0.93.1"
    1.49 +VERSION="0.89"
    1.50  CATEGORY="non-free"
    1.51  SHORT_DESC="An Efficient Multimedia Viewer, Browser and Converter."
    1.52  WEB_SITE="https://www.xnview.com"
    1.53 -DEPENDS=""
    1.54 +DEPENDS="mesa-wayland"
    1.55  CONFIG_FILES=""
    1.56  EOT
    1.57