wok-next view peazip/receipt @ rev 20395

e4rat: update patch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 02 12:33:04 2017 +0100 (2017-12-02)
parents 80e1ac5015cb
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="peazip"
4 VERSION="6.4.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Open Source archive manager and data compression utility"
7 MAINTAINER="hackdorte@yandex.com"
8 LICENSE="LGPL3 GPL LGPL freeware"
9 WEB_SITE="http://peazip.org/peazip-linux.html"
11 TARBALL="$PACKAGE-$VERSION.LINUX.GTK2.tgz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL2="http://www.peazip.org/downloads/unace/peazip_unace_plugin-1.LINUX.ALL.tar.gz"
14 WGET_URL3="http://www.peazip.org/downloads/unrar5/peazip_unrar5_plugin-1.LINUX.ALL.tar.gz"
15 WGET_URL4="http://www.peazip.org/downloads/additional/peazip_additional_formats_plugin-2.LINUX.ALL.tar.gz"
17 SPLIT="peazip-plugin-unace peazip-plugin-unrar5 peazip-plugin-additional peazip"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # download/extract plugins
23 for i in $WGET_URL2 $WGET_URL3 $WGET_URL4; do
24 tarball="$SRC/$(basename $i)"
25 [ -e $tarball ] || wget -O $tarball $i
26 tar -xzf $tarball
27 done
29 bindir=$install/usr/bin
30 libdir=$install/usr/lib/peazip
31 appdir=$install/usr/share/applications
32 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
33 icodir=$install/usr/share/icons/hicolor/256x256/apps
34 actdir=$install/usr/share/file-manager/actions
36 mkdir -p $bindir $libdir $appdir $docdir $icodir $actdir
38 # Hierarchies for SliTaz GNU/Linux
39 cp -a $src/usr/local/share/PeaZip/res/ $libdir
40 cp -a $src/usr/local/share/PeaZip/peazip $libdir
41 cp -a $src/usr/local/share/PeaZip/copying.txt $libdir
42 cp -a $src/usr/local/share/PeaZip/peazip_help.pdf $libdir
43 cp -a $src/usr/local/share/icons/peazip.png $icodir
45 # Desktop entry for Peazip
46 cp $stuff/*.desktop $appdir
47 # PCManFM desktop integration (PeaZip context menu)
48 cp $stuff/actions/*.desktop $actdir
50 # Symbolic links
51 ln -s ../lib/peazip/res/pea $bindir
52 ln -s ../lib/peazip/res/pealauncher $bindir
53 ln -s ../lib/peazip/peazip $bindir
54 ln $libdir/peazip_help.pdf $docdir
56 # Plugins
57 cp -a unace/ unrar/ lpaq/ paq/ quad/ $libdir/res/
59 # Fix permissions
60 find $install \( -name '*.txt' -o -name '*.7z' -o -name '*.bmp' -o \
61 -name '*.readme' -o -name '*.diz' \) -exec chmod 0644 '{}' \;
62 find $install -type f \( -perm 0775 -o -perm 0777 \) -exec chmod 0755 '{}' \;
63 find $install -type d -exec chmod 0755 '{}' \;
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 case $PACKAGE in
70 peazip-plugin-unace)
71 copy unace/
72 CAT="utilities|UNACE plugin"
73 ;;
74 peazip-plugin-unrar5)
75 copy unrar/
76 CAT="utilities|UNRAR5 alternative plugin"
77 ;;
78 peazip-plugin-additional)
79 copy lpaq/ paq/ quad/
80 CAT="utilities|additional formats plugin 2"
81 ;;
82 peazip)
83 copy @std
84 remove_already_packed
85 DEPENDS="atk cairo gdk-pixbuf glib gtk+ pango xorg-libX11 \
86 busybox desktop-file-utils gmp libcurl ncurses upx zpaq xdg-utils"
87 SUGGESTED="aescrypt gnupg"
88 TAGS="archiver bzip2 encryption gzip rar split tar unrar xz zip 7zip"
89 ;;
90 esac
91 }