wok-next view peazip/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | 82b613cfd1e0 |
children |
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="devel@slitaz.org"
8 LICENSE="LGPL3 GPL LGPL freeware"
9 WEB_SITE="https://www.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="$PACKAGE-plugin-unace $PACKAGE-plugin-unrar5 $PACKAGE-plugin-additional \
18 $PACKAGE"
20 compile_rules() {
21 # download/extract plugins
22 for i in $WGET_URL2 $WGET_URL3 $WGET_URL4; do
23 tarball="$SRC/$(basename $i)"
24 [ -e $tarball ] || wget -O $tarball $i
25 tar -xzf $tarball
26 done
28 bindir=$install/usr/bin
29 libdir=$install/usr/lib/peazip
30 appdir=$install/usr/share/applications
31 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
32 icodir=$install/usr/share/icons/hicolor/256x256/apps
33 actdir=$install/usr/share/file-manager/actions
35 mkdir -p $bindir $libdir $appdir $docdir $icodir $actdir
37 # Hierarchies for SliTaz GNU/Linux
38 cp -a $src/usr/local/share/PeaZip/res/ $libdir
39 cp -a $src/usr/local/share/PeaZip/peazip $libdir
40 cp -a $src/usr/local/share/PeaZip/copying.txt $libdir
41 cp -a $src/usr/local/share/PeaZip/peazip_help.pdf $libdir
42 cp -a $src/usr/local/share/icons/peazip.png $icodir
44 # Desktop entry for Peazip
45 cp $stuff/*.desktop $appdir
46 # PCManFM desktop integration (PeaZip context menu)
47 cp $stuff/actions/*.desktop $actdir
49 # Symbolic links
50 ln -s ../lib/peazip/res/pea $bindir
51 ln -s ../lib/peazip/res/pealauncher $bindir
52 ln -s ../lib/peazip/peazip $bindir
53 ln $libdir/peazip_help.pdf $docdir
55 # Plugins
56 cp -a unace/ unrar/ lpaq/ paq/ quad/ $libdir/res/
58 # Fix permissions
59 find $install \( -name '*.txt' -o -name '*.7z' -o -name '*.bmp' -o \
60 -name '*.readme' -o -name '*.diz' \) -exec chmod 0644 '{}' \;
61 find $install -type f \( -perm 0775 -o -perm 0777 \) -exec chmod 0755 '{}' \;
62 find $install -type d -exec chmod 0755 '{}' \;
63 }
65 genpkg_rules() {
66 case $PACKAGE in
67 peazip-plugin-unace)
68 copy unace/
69 CAT="utilities|UNACE plugin"
70 ;;
71 peazip-plugin-unrar5)
72 copy unrar/
73 CAT="utilities|UNRAR5 alternative plugin"
74 ;;
75 peazip-plugin-additional)
76 copy lpaq/ paq/ quad/
77 CAT="utilities|additional formats plugin 2"
78 ;;
79 peazip)
80 copy @std @rm
81 DEPENDS="atk libcairo gdk-pixbuf glib gtk2 pango libx11 \
82 busybox desktop-file-utils gmp libcurl ncurses upx zpaq xdg-utils"
83 SUGGESTED="aescrypt gnupg"
84 TAGS="archiver bzip2 encryption gzip rar split tar unrar xz zip 7zip"
85 ;;
86 esac
87 }