wok rev 21179

updated get-xnviewmp (1.1 -> 1.2)
author Hans-G?nter Theisgen
date Tue Apr 02 15:12:10 2019 +0100 (2019-04-02)
parents e24f9f369562
children 6147eabd1b28
files get-xnviewmp/receipt get-xnviewmp/stuff/get-xnviewmp
line diff
     1.1 --- a/get-xnviewmp/receipt	Mon Apr 01 17:24:16 2019 +0100
     1.2 +++ b/get-xnviewmp/receipt	Tue Apr 02 15:12:10 2019 +0100
     1.3 @@ -1,13 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-xnviewmp"
     1.7 -VERSION="1.1"
     1.8 +VERSION="1.2"
     1.9  CATEGORY="non-free"
    1.10 -SHORT_DESC="Get XnViewMP. Image viewer"
    1.11 +TAGS="image photo viewer converter"
    1.12 +SHORT_DESC="Get XnViewMP. Image viewer and converter."
    1.13  MAINTAINER="taziden@slitaz.org"
    1.14  LICENSE="BSD"
    1.15 -WEB_SITE="http://www.xnview.com"
    1.16 -TAGS="image photo viewer"
    1.17 +WEB_SITE="https://www.xnview.com"
    1.18  
    1.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.20  genpkg_rules()
    1.21 @@ -15,4 +15,3 @@
    1.22  	mkdir -p $fs/usr/bin
    1.23  	cp stuff/get-xnviewmp $fs/usr/bin
    1.24  }
    1.25 -
     2.1 --- a/get-xnviewmp/stuff/get-xnviewmp	Mon Apr 01 17:24:16 2019 +0100
     2.2 +++ b/get-xnviewmp/stuff/get-xnviewmp	Tue Apr 02 15:12:10 2019 +0100
     2.3 @@ -2,6 +2,7 @@
     2.4  
     2.5  ROOT="$1"
     2.6  
     2.7 +# Test for administrator privilege
     2.8  if test $(id -u) != 0 ; then
     2.9  	echo -e "\nYou must be root to run `basename $0`."
    2.10  	echo -e "Please type 'su' and root password to become super-user.\n"
    2.11 @@ -13,11 +14,12 @@
    2.12    tazpkg remove xnviewmp
    2.13    [ -d /var/lib/tazpkg/installed/xnviewmp ] && exit 1
    2.14  fi
    2.15 +
    2.16  [ -d $ROOT/usr/share/xnviewmp ] && rm -rf $ROOT/usr/share/xnviewmp
    2.17  
    2.18  # Download tarball
    2.19 -WEB_SITE="http://download.xnview.com"
    2.20 -wget ${WEB_SITE}/XnViewMP-linux.tgz
    2.21 +WEB_SITE="https://download.xnview.com"
    2.22 +wget --no-check-certificate ${WEB_SITE}/XnViewMP-linux.tgz
    2.23  if [ ! -f $TARBALL ]; then
    2.24  	rm -rf XnViewMP
    2.25  	echo "Could not download $TARBALL. Exiting."
    2.26 @@ -27,27 +29,31 @@
    2.27  # Extract
    2.28  TARBALL=$(ls XnView*.tgz 2> /dev/null || true)
    2.29  tar xzf $TARBALL
    2.30 -cd XnViewMP
    2.31  
    2.32 -# Install files
    2.33 +cd XnView
    2.34 +
    2.35 +# Create directories for packaging
    2.36  mkdir -p xnviewmp/fs/usr/bin
    2.37  mkdir -p xnviewmp/fs/usr/lib/xnviewmp/
    2.38  mkdir -p xnviewmp/fs/usr/share/xnviewmp/
    2.39  mkdir -p xnviewmp/fs/usr/share/applications
    2.40  mkdir -p xnviewmp/fs/usr/share/pixmaps
    2.41  
    2.42 -# use mv instead of 'cp -a' to save RAM
    2.43 -mv lib xnviewmp/fs/usr/lib/xnviewmp/
    2.44 -mv language xnviewmp/fs/usr/share/xnviewmp/
    2.45 -mv AddOn xnviewmp/fs/usr/lib/xnviewmp/
    2.46 -mv Plugins xnviewmp/fs/usr/lib/xnviewmp/
    2.47 -mv UI xnviewmp/fs/usr/lib/xnviewmp/
    2.48 -mv xnview xnviewmp/fs/usr/share/xnviewmp/
    2.49 -mv *.png xnviewmp/fs/usr/share/xnviewmp/
    2.50 -mv country.txt xnviewmp/fs/usr/lib/xnviewmp/
    2.51 -mv qt.conf xnviewmp/fs/usr/lib/xnviewmp/
    2.52 -cp -a xnviewmp/fs/usr/share/xnviewmp/xnview.png xnviewmp/fs/usr/share/pixmaps
    2.53 +# Install files
    2.54 +# use mv instead of 'cp -a' to save space
    2.55 +mv lib		xnviewmp/fs/usr/lib/xnviewmp/
    2.56 +mv language	xnviewmp/fs/usr/share/xnviewmp/
    2.57 +mv AddOn	xnviewmp/fs/usr/lib/xnviewmp/
    2.58 +mv Plugins	xnviewmp/fs/usr/lib/xnviewmp/
    2.59 +mv UI		xnviewmp/fs/usr/lib/xnviewmp/
    2.60 +mv XnView	xnviewmp/fs/usr/share/xnviewmp/xnview
    2.61 +mv *.png	xnviewmp/fs/usr/share/xnviewmp/
    2.62 +mv country.txt	xnviewmp/fs/usr/lib/xnviewmp/
    2.63 +mv qt.conf	xnviewmp/fs/usr/lib/xnviewmp/
    2.64 +cp -a xnviewmp/fs/usr/share/xnviewmp/xnview.png	\
    2.65 +		xnviewmp/fs/usr/share/pixmaps
    2.66  
    2.67 +# Create command procedure
    2.68  cat > xnviewmp/fs/usr/bin/xnview <<EOT
    2.69  #!/bin/sh
    2.70  LD_LIBRARY_PATH=/usr/lib/xnviewmp/lib
    2.71 @@ -56,6 +62,7 @@
    2.72  EOT
    2.73  chmod +x xnviewmp/fs/usr/bin/xnview
    2.74  
    2.75 +# Create desktop file
    2.76  cat > xnviewmp/fs/usr/share/applications/XnView.desktop <<EOT
    2.77  [Desktop Entry]
    2.78  Encoding=UTF-8
    2.79 @@ -69,13 +76,14 @@
    2.80  GenericName=XnViewMP
    2.81  EOT
    2.82  
    2.83 -# Create pseudo package
    2.84 +# Create pseudo package recipe
    2.85 +# Version is correct as on 2019-04-02
    2.86  cat > xnviewmp/receipt <<EOT
    2.87  PACKAGE="xnviewmp"
    2.88 -VERSION="0.39"
    2.89 +VERSION="0.93.1"
    2.90  CATEGORY="non-free"
    2.91 -SHORT_DESC="XnViewMP"
    2.92 -WEB_SITE="http://www.xnview.com"
    2.93 +SHORT_DESC="An Efficient Multimedia Viewer, Browser and Converter."
    2.94 +WEB_SITE="https://www.xnview.com"
    2.95  DEPENDS=""
    2.96  CONFIG_FILES=""
    2.97  EOT