wok-next annotate peazip/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 82b613cfd1e0 |
children |
rev | line source |
---|---|
al@19838 | 1 # SliTaz package receipt v2. |
hackdorte@18995 | 2 |
hackdorte@18995 | 3 PACKAGE="peazip" |
al@19838 | 4 VERSION="6.4.1" |
al@19838 | 5 CATEGORY="utilities" |
al@19838 | 6 SHORT_DESC="Open Source archive manager and data compression utility" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@19838 | 8 LICENSE="LGPL3 GPL LGPL freeware" |
pascal@21181 | 9 WEB_SITE="https://www.peazip.org/peazip-linux.html" |
hackdorte@18995 | 10 |
al@19838 | 11 TARBALL="$PACKAGE-$VERSION.LINUX.GTK2.tgz" |
al@18997 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@19838 | 13 WGET_URL2="http://www.peazip.org/downloads/unace/peazip_unace_plugin-1.LINUX.ALL.tar.gz" |
al@19838 | 14 WGET_URL3="http://www.peazip.org/downloads/unrar5/peazip_unrar5_plugin-1.LINUX.ALL.tar.gz" |
al@19838 | 15 WGET_URL4="http://www.peazip.org/downloads/additional/peazip_additional_formats_plugin-2.LINUX.ALL.tar.gz" |
hackdorte@18995 | 16 |
al@21020 | 17 SPLIT="$PACKAGE-plugin-unace $PACKAGE-plugin-unrar5 $PACKAGE-plugin-additional \ |
al@21020 | 18 $PACKAGE" |
hackdorte@18995 | 19 |
al@21020 | 20 compile_rules() { |
al@19838 | 21 # download/extract plugins |
al@19838 | 22 for i in $WGET_URL2 $WGET_URL3 $WGET_URL4; do |
al@19838 | 23 tarball="$SRC/$(basename $i)" |
al@19838 | 24 [ -e $tarball ] || wget -O $tarball $i |
al@19838 | 25 tar -xzf $tarball |
al@19838 | 26 done |
hackdorte@18995 | 27 |
al@19838 | 28 bindir=$install/usr/bin |
al@19838 | 29 libdir=$install/usr/lib/peazip |
al@19838 | 30 appdir=$install/usr/share/applications |
al@19838 | 31 docdir=$install/usr/share/doc/$PACKAGE-$VERSION |
al@19838 | 32 icodir=$install/usr/share/icons/hicolor/256x256/apps |
al@19838 | 33 actdir=$install/usr/share/file-manager/actions |
hackdorte@18995 | 34 |
al@19838 | 35 mkdir -p $bindir $libdir $appdir $docdir $icodir $actdir |
al@19838 | 36 |
al@19838 | 37 # Hierarchies for SliTaz GNU/Linux |
al@19838 | 38 cp -a $src/usr/local/share/PeaZip/res/ $libdir |
al@19838 | 39 cp -a $src/usr/local/share/PeaZip/peazip $libdir |
al@19838 | 40 cp -a $src/usr/local/share/PeaZip/copying.txt $libdir |
al@19838 | 41 cp -a $src/usr/local/share/PeaZip/peazip_help.pdf $libdir |
al@19838 | 42 cp -a $src/usr/local/share/icons/peazip.png $icodir |
al@19838 | 43 |
al@19838 | 44 # Desktop entry for Peazip |
al@19838 | 45 cp $stuff/*.desktop $appdir |
al@19838 | 46 # PCManFM desktop integration (PeaZip context menu) |
al@19838 | 47 cp $stuff/actions/*.desktop $actdir |
al@19838 | 48 |
al@19838 | 49 # Symbolic links |
al@19838 | 50 ln -s ../lib/peazip/res/pea $bindir |
al@19838 | 51 ln -s ../lib/peazip/res/pealauncher $bindir |
al@19838 | 52 ln -s ../lib/peazip/peazip $bindir |
al@19838 | 53 ln $libdir/peazip_help.pdf $docdir |
al@19838 | 54 |
al@19838 | 55 # Plugins |
al@19838 | 56 cp -a unace/ unrar/ lpaq/ paq/ quad/ $libdir/res/ |
al@19838 | 57 |
al@19838 | 58 # Fix permissions |
al@19838 | 59 find $install \( -name '*.txt' -o -name '*.7z' -o -name '*.bmp' -o \ |
al@19838 | 60 -name '*.readme' -o -name '*.diz' \) -exec chmod 0644 '{}' \; |
al@19838 | 61 find $install -type f \( -perm 0775 -o -perm 0777 \) -exec chmod 0755 '{}' \; |
al@19838 | 62 find $install -type d -exec chmod 0755 '{}' \; |
hackdorte@18995 | 63 } |
hackdorte@18995 | 64 |
al@21020 | 65 genpkg_rules() { |
al@19838 | 66 case $PACKAGE in |
al@19838 | 67 peazip-plugin-unace) |
al@19838 | 68 copy unace/ |
al@19838 | 69 CAT="utilities|UNACE plugin" |
al@19838 | 70 ;; |
al@19838 | 71 peazip-plugin-unrar5) |
al@19838 | 72 copy unrar/ |
al@19838 | 73 CAT="utilities|UNRAR5 alternative plugin" |
al@19838 | 74 ;; |
al@19838 | 75 peazip-plugin-additional) |
al@19838 | 76 copy lpaq/ paq/ quad/ |
al@19838 | 77 CAT="utilities|additional formats plugin 2" |
al@19838 | 78 ;; |
al@19838 | 79 peazip) |
al@20513 | 80 copy @std @rm |
al@21105 | 81 DEPENDS="atk libcairo gdk-pixbuf glib gtk2 pango libx11 \ |
al@19838 | 82 busybox desktop-file-utils gmp libcurl ncurses upx zpaq xdg-utils" |
al@19838 | 83 SUGGESTED="aescrypt gnupg" |
al@19838 | 84 TAGS="archiver bzip2 encryption gzip rar split tar unrar xz zip 7zip" |
al@19838 | 85 ;; |
al@19838 | 86 esac |
al@18997 | 87 } |