wok-next rev 19838

Up peazip: add plugins, add PCManFM integration, fix permissions, remove desktop entries for sub-tools.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 13 13:45:42 2017 +0300 (2017-08-13)
parents 94ab15b469ab
children f39f273a6ec1
files peazip/description.peazip-plugin-additional.txt peazip/description.peazip-plugin-unace.txt peazip/description.peazip-plugin-unrar5.txt peazip/description.txt peazip/receipt peazip/stuff/actions/peazip-menu.desktop peazip/stuff/actions/peazipadd.desktop peazip/stuff/actions/peazipext.desktop peazip/stuff/actions/peazipextfolder.desktop peazip/stuff/actions/peazipexthere.desktop peazip/stuff/actions/peazipopen.desktop peazip/stuff/peazip.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/peazip/description.peazip-plugin-additional.txt	Sun Aug 13 13:45:42 2017 +0300
     1.3 @@ -0,0 +1,8 @@
     1.4 +### Additional Formats Plugin 2
     1.5 +
     1.6 +PeaZip Additional Formats Plugin 2 is needed to handle additional formats
     1.7 +supported by PeaZip: LPAQ1, LPAQ5, PAQ8F, PAQ8JD, PAQ8L, QUAD and BALZ
     1.8 +(browsing and extraction).
     1.9 +
    1.10 +Note for GNU/Linux users: contains 32 bit x86 executable software, so on Linux
    1.11 +64 bit systems it requires **ia32-libs**.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/peazip/description.peazip-plugin-unace.txt	Sun Aug 13 13:45:42 2017 +0300
     2.3 @@ -0,0 +1,13 @@
     2.4 +### UNACE Plugin
     2.5 +
     2.6 +UNACE Plugin handles browsing and extraction of WinAce's
     2.7 +[ACE file format](http://en.wikipedia.org/wiki/ACE_%28compression_file_format%29)
     2.8 +and it is needed to
     2.9 +[open ACE files](http://www.peazip.org/ace-files-utility.html) in PeaZip.
    2.10 +
    2.11 +This package is meant to provide free ACE files support as separate plugin
    2.12 +since UNACE is released by WinACE as royalty free, but closed source, freeware
    2.13 +binaries.
    2.14 +
    2.15 +Note for GNU/Linux users: UNACE is a 32 bit executable, so on Linux 64 bit
    2.16 +systems it requires ia32-libs to extract ACE files.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/peazip/description.peazip-plugin-unrar5.txt	Sun Aug 13 13:45:42 2017 +0300
     3.3 @@ -0,0 +1,20 @@
     3.4 +### UNRAR5 Plugin (optional, alternative unrar engine)
     3.5 +
     3.6 +On Windows and Linux systems recent PeaZip versions use by default the 7-Zip /
     3.7 +p7zip 15.06 (or more recent) unrar implementation, which is capable of reading
     3.8 +(browsing, extracting) RAR5 format natively, so **it is no longer needed to
     3.9 +separately install this plugin** - which it is still provided only as an
    3.10 +alternative rar5 files extraction engine.
    3.11 +
    3.12 +UNRAR5 Plugin is meant to [open RAR files](http://www.peazip.org/free-rar.html)
    3.13 +built with most recent [RARv5rar5](http://www.rarlab.com/technote.htm) format
    3.14 +standard file format specifications.
    3.15 +
    3.16 +RarLab's unrar is royalty-free, and sources are available, but due to unrar
    3.17 +[licensing restrictionis](http://www.scribd.com/doc/45654333/UnRAR-License#scribd)
    3.18 +(licensing terms of source code prohibits making a tool that can create
    3.19 +RAR-compatible archives) it is widely regarded
    3.20 +([Fedora project on unrar](https://fedoraproject.org/wiki/Licensing:Unrar?rd=Licensing/Unrar),
    3.21 +[Ubuntu forums unrar](http://ubuntuforums.org/archive/index.php/t-2012979.html))
    3.22 +by Open Source community to not be OSI-compliant - and consequently needs to be
    3.23 +deployed as separate add-on for PeaZip project.
     4.1 --- a/peazip/description.txt	Sat Aug 12 05:16:49 2017 +0300
     4.2 +++ b/peazip/description.txt	Sun Aug 13 13:45:42 2017 +0300
     4.3 @@ -5,3 +5,16 @@
     4.4  
     4.5  PeaZip For Linux
     4.6  http://www.peazip.org/peazip-linux.html
     4.7 +
     4.8 +
     4.9 +### SliTaz GNU/Linux
    4.10 +
    4.11 +Please, report bugs to <http://bugs.slitaz.org>.
    4.12 +
    4.13 +Improvements and suggestions please visit our forum and leave your comment.
    4.14 +<http://forum.slitaz.org> Thank you.
    4.15 +
    4.16 +Need help? See: <http://www.slitaz.org/en/support.php>
    4.17 +
    4.18 +[The SliTaz GNU/Linux DevTeam](http://people.slitaz.org)  
    4.19 +[The SliTaz GNU/Linux Association](http://www.slitaz.org)
     5.1 --- a/peazip/receipt	Sat Aug 12 05:16:49 2017 +0300
     5.2 +++ b/peazip/receipt	Sun Aug 13 13:45:42 2017 +0300
     5.3 @@ -1,77 +1,91 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="peazip"
     5.8 -VERSION="6.0.0"
     5.9 -SYSTEM="LINUX"
    5.10 -ENV="GTK2"
    5.11 -CATEGORY="x-window"
    5.12 -SHORT_DESC="Open Source archive manager and data compression utility."
    5.13 -MAINTAINER="hackdorte@sapo.pt"
    5.14 -LICENSE="LGPL3"
    5.15 +VERSION="6.4.1"
    5.16 +CATEGORY="utilities"
    5.17 +SHORT_DESC="Open Source archive manager and data compression utility"
    5.18 +MAINTAINER="hackdorte@yandex.com"
    5.19 +LICENSE="LGPL3 GPL LGPL freeware"
    5.20  WEB_SITE="http://peazip.org/peazip-linux.html"
    5.21  
    5.22 -TARBALL="$PACKAGE-$VERSION.$SYSTEM.$ENV.tgz"
    5.23 +TARBALL="$PACKAGE-$VERSION.LINUX.GTK2.tgz"
    5.24  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    5.25 +WGET_URL2="http://www.peazip.org/downloads/unace/peazip_unace_plugin-1.LINUX.ALL.tar.gz"
    5.26 +WGET_URL3="http://www.peazip.org/downloads/unrar5/peazip_unrar5_plugin-1.LINUX.ALL.tar.gz"
    5.27 +WGET_URL4="http://www.peazip.org/downloads/additional/peazip_additional_formats_plugin-2.LINUX.ALL.tar.gz"
    5.28  
    5.29 -DEPENDS="xorg-libX11 atk glibc-base cairo gtk+ gdk-pixbuf glib pango"
    5.30 +SPLIT="peazip-plugin-unace peazip-plugin-unrar5 peazip-plugin-additional peazip"
    5.31  
    5.32  # Rules to configure and make the package.
    5.33  compile_rules()
    5.34  {
    5.35 +	# download/extract plugins
    5.36 +	for i in $WGET_URL2 $WGET_URL3 $WGET_URL4; do
    5.37 +		tarball="$SRC/$(basename $i)"
    5.38 +		[ -e $tarball ] || wget -O $tarball $i
    5.39 +		tar -xzf $tarball
    5.40 +	done
    5.41  
    5.42 -mkdir -p $install/
    5.43 -cp -a $src/* $install/
    5.44 +	bindir=$install/usr/bin
    5.45 +	libdir=$install/usr/lib/peazip
    5.46 +	appdir=$install/usr/share/applications
    5.47 +	docdir=$install/usr/share/doc/$PACKAGE-$VERSION
    5.48 +	icodir=$install/usr/share/icons/hicolor/256x256/apps
    5.49 +	actdir=$install/usr/share/file-manager/actions
    5.50  
    5.51 +	mkdir -p $bindir $libdir $appdir $docdir $icodir $actdir
    5.52 +
    5.53 +	# Hierarchies for SliTaz GNU/Linux
    5.54 +	cp -a $src/usr/local/share/PeaZip/res/            $libdir
    5.55 +	cp -a $src/usr/local/share/PeaZip/peazip          $libdir
    5.56 +	cp -a $src/usr/local/share/PeaZip/copying.txt     $libdir
    5.57 +	cp -a $src/usr/local/share/PeaZip/peazip_help.pdf $libdir
    5.58 +	cp -a $src/usr/local/share/icons/peazip.png       $icodir
    5.59 +
    5.60 +	# Desktop entry for Peazip
    5.61 +	cp $stuff/*.desktop $appdir
    5.62 +	# PCManFM desktop integration (PeaZip context menu)
    5.63 +	cp $stuff/actions/*.desktop $actdir
    5.64 +
    5.65 +	# Symbolic links
    5.66 +	ln -s ../lib/peazip/res/pea         $bindir
    5.67 +	ln -s ../lib/peazip/res/pealauncher $bindir
    5.68 +	ln -s ../lib/peazip/peazip          $bindir
    5.69 +	ln    $libdir/peazip_help.pdf       $docdir
    5.70 +
    5.71 +	# Plugins
    5.72 +	cp -a unace/ unrar/ lpaq/ paq/ quad/ $libdir/res/
    5.73 +
    5.74 +	# Fix permissions
    5.75 +	find $install \( -name '*.txt' -o -name '*.7z' -o -name '*.bmp' -o \
    5.76 +		-name '*.readme' -o -name '*.diz' \) -exec chmod 0644 '{}' \;
    5.77 +	find $install -type f \( -perm 0775 -o -perm 0777 \) -exec chmod 0755 '{}' \;
    5.78 +	find $install -type d -exec chmod 0755 '{}' \;
    5.79  }
    5.80  
    5.81  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.82  genpkg_rules()
    5.83  {
    5.84 -
    5.85 -  # Build Tree
    5.86 -    mkdir -p $install/usr/share/applications
    5.87 -    mkdir -p $install/usr/share/pixmaps
    5.88 -    cp -a $install/usr/local/share/applications/* $install/usr/share/applications
    5.89 -    cp -a $install/usr/local/share/icons/* $install/usr/share/pixmaps
    5.90 -
    5.91 -
    5.92 -# Writing (pea.desktop) File
    5.93 -cat > $install/usr/share/applications/pea.desktop <<EOT
    5.94 -[Desktop Entry]
    5.95 -Version=1.0
    5.96 -Encoding=UTF-8
    5.97 -Name=Pea Checksum and Hash
    5.98 -MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
    5.99 -Exec=pea
   5.100 -Icon=peazip
   5.101 -Type=Application
   5.102 -Terminal=false
   5.103 -X-KDE-HasTempFileOption=true
   5.104 -Categories=GTK;KDE;Utility;System;Archiving;
   5.105 -Name[en_US]=Pea Checksum and Hash
   5.106 -Comment=Peazip Checksum and Hash
   5.107 -
   5.108 -EOT
   5.109 -
   5.110 -# Writing (pealauncher.desktop) File
   5.111 -cat > $install/usr/share/applications/pealauncher.desktop <<EOT
   5.112 -[Desktop Entry]
   5.113 -Version=1.0
   5.114 -Encoding=UTF-8
   5.115 -Name=Pealauncher
   5.116 -MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
   5.117 -Exec=pealauncher
   5.118 -Icon=peazip
   5.119 -Type=Application
   5.120 -Terminal=false
   5.121 -X-KDE-HasTempFileOption=true
   5.122 -Categories=GTK;KDE;Utility;System;Archiving;
   5.123 -Name[en_US]=Pealauncher
   5.124 -Comment=Drag here the archive to extract.
   5.125 -
   5.126 -EOT
   5.127 -
   5.128 -# All Done!
   5.129 -cp -a $install/* $fs
   5.130 -
   5.131 +	case $PACKAGE in
   5.132 +		peazip-plugin-unace)
   5.133 +			copy unace/
   5.134 +			CAT="utilities|UNACE plugin"
   5.135 +			;;
   5.136 +		peazip-plugin-unrar5)
   5.137 +			copy unrar/
   5.138 +			CAT="utilities|UNRAR5 alternative plugin"
   5.139 +			;;
   5.140 +		peazip-plugin-additional)
   5.141 +			copy lpaq/ paq/ quad/
   5.142 +			CAT="utilities|additional formats plugin 2"
   5.143 +			;;
   5.144 +		peazip)
   5.145 +			copy @std
   5.146 +			remove_already_packed
   5.147 +			DEPENDS="atk cairo gdk-pixbuf glib gtk+ pango xorg-libX11   \
   5.148 +			busybox desktop-file-utils gmp libcurl ncurses upx zpaq xdg-utils"
   5.149 +			SUGGESTED="aescrypt gnupg"
   5.150 +			TAGS="archiver bzip2 encryption gzip rar split tar unrar xz zip 7zip"
   5.151 +			;;
   5.152 +	esac
   5.153  }
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/peazip/stuff/actions/peazip-menu.desktop	Sun Aug 13 13:45:42 2017 +0300
     6.3 @@ -0,0 +1,6 @@
     6.4 +[Desktop Entry]
     6.5 +Type=Menu
     6.6 +ItemsList=peazipadd;peazipext;peazipextfolder;peazipexthere;peazipopen;
     6.7 +
     6.8 +Icon=peazip
     6.9 +Name=PeaZip
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/peazip/stuff/actions/peazipadd.desktop	Sun Aug 13 13:45:42 2017 +0300
     7.3 @@ -0,0 +1,9 @@
     7.4 +[Desktop Entry]
     7.5 +Type=Action
     7.6 +Name=Archive...
     7.7 +Name[ru]=Архивировать…
     7.8 +Icon=document-import
     7.9 +Profiles=peazipadd;
    7.10 +
    7.11 +[X-Action-Profile peazipadd]
    7.12 +Exec=peazip -add2archive %F
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/peazip/stuff/actions/peazipext.desktop	Sun Aug 13 13:45:42 2017 +0300
     8.3 @@ -0,0 +1,9 @@
     8.4 +[Desktop Entry]
     8.5 +Type=Action
     8.6 +Name=Extract...
     8.7 +Name[ru]=Извлечь…
     8.8 +Icon=document-export
     8.9 +Profiles=peazipext;
    8.10 +
    8.11 +[X-Action-Profile peazipext]
    8.12 +Exec=peazip -ext2full %F
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/peazip/stuff/actions/peazipextfolder.desktop	Sun Aug 13 13:45:42 2017 +0300
     9.3 @@ -0,0 +1,9 @@
     9.4 +[Desktop Entry]
     9.5 +Type=Action
     9.6 +Name=Extract here to new folder
     9.7 +Name[ru]=Извлечь здесь в новую папку
     9.8 +Icon=folder-new
     9.9 +Profiles=peazipextfolder;
    9.10 +
    9.11 +[X-Action-Profile peazipextfolder]
    9.12 +Exec=peazip -ext2folder %F
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/peazip/stuff/actions/peazipexthere.desktop	Sun Aug 13 13:45:42 2017 +0300
    10.3 @@ -0,0 +1,9 @@
    10.4 +[Desktop Entry]
    10.5 +Type=Action
    10.6 +Name=Extract here
    10.7 +Name[ru]=Извлечь в текущую папку
    10.8 +Icon=folder
    10.9 +Profiles=peazipexthere;
   10.10 +
   10.11 +[X-Action-Profile peazipexthere]
   10.12 +Exec=peazip -ext2here %F
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/peazip/stuff/actions/peazipopen.desktop	Sun Aug 13 13:45:42 2017 +0300
    11.3 @@ -0,0 +1,9 @@
    11.4 +[Desktop Entry]
    11.5 +Type=Action
    11.6 +Name=Open
    11.7 +Name[ru]=Открыть
    11.8 +Icon=document-open
    11.9 +Profiles=peazipopen;
   11.10 +
   11.11 +[X-Action-Profile peazipopen]
   11.12 +Exec=peazip -ext2browse %F
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/peazip/stuff/peazip.desktop	Sun Aug 13 13:45:42 2017 +0300
    12.3 @@ -0,0 +1,8 @@
    12.4 +[Desktop Entry]
    12.5 +Type=Application
    12.6 +Name=Peazip
    12.7 +GenericName=Archiving Tool
    12.8 +Exec=peazip %F
    12.9 +Icon=peazip
   12.10 +Categories=Utility;Archiving;Compression;
   12.11 +MimeType=application-x-lrzip-compressed-tar;application/gzip;application/vnd.android.package-archive;application/vnd.debian.binary-package;application/vnd.ms-cab-compressed;application/x-7z-compressed;application/x-ace;application/x-alz;application/x-arc;application/x-archive;application/x-arj;application/x-bzdvi;application/x-bzip-compressed-tar;application/x-bzip;application/x-bzpdf;application/x-bzpostscript;application/x-cb7;application/x-cbr;application/x-cbt;application/x-cbz;application/x-compress;application/x-compressed-tar;application/x-cpio-compressed;application/x-cpio;application/x-dar;application/x-gz-font-linux-psf;application/x-gzdvi;application/x-gzpdf;application/x-gzpostscript;application/x-java-archive;application/x-java-pack200;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lz4;application/x-lzip;application/x-lzma-compressed-tar;application/x-lzma;application/x-lzop;application/x-mimearchive;application/x-pak;application/x-par2;application/x-qpress;application/x-rar;application/x-raw-disk-image-xz-compressed;application/x-shar;application/x-stuffit;application/x-sv4cpio;application/x-sv4crc;application/x-tar;application/x-tarz;application/x-troff-man-compressed;application/x-tzo;application/x-ustar;application/x-windows-themepack;application/x-xar;application/x-xz-compressed-tar;application/x-xz;application/x-xzpdf;application/x-zip-compressed-fb2;application/x-zoo;application/zip;application/zlib;image/svg+xml-compressed;image/x-bzeps;image/x-compressed-xcf;image/x-gzeps;