wok-next annotate 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
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@19838 7 MAINTAINER="hackdorte@yandex.com"
al@19838 8 LICENSE="LGPL3 GPL LGPL freeware"
hackdorte@18995 9 WEB_SITE="http://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@19838 17 SPLIT="peazip-plugin-unace peazip-plugin-unrar5 peazip-plugin-additional peazip"
hackdorte@18995 18
hackdorte@18995 19 # Rules to configure and make the package.
hackdorte@18995 20 compile_rules()
hackdorte@18995 21 {
al@19838 22 # download/extract plugins
al@19838 23 for i in $WGET_URL2 $WGET_URL3 $WGET_URL4; do
al@19838 24 tarball="$SRC/$(basename $i)"
al@19838 25 [ -e $tarball ] || wget -O $tarball $i
al@19838 26 tar -xzf $tarball
al@19838 27 done
hackdorte@18995 28
al@19838 29 bindir=$install/usr/bin
al@19838 30 libdir=$install/usr/lib/peazip
al@19838 31 appdir=$install/usr/share/applications
al@19838 32 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
al@19838 33 icodir=$install/usr/share/icons/hicolor/256x256/apps
al@19838 34 actdir=$install/usr/share/file-manager/actions
hackdorte@18995 35
al@19838 36 mkdir -p $bindir $libdir $appdir $docdir $icodir $actdir
al@19838 37
al@19838 38 # Hierarchies for SliTaz GNU/Linux
al@19838 39 cp -a $src/usr/local/share/PeaZip/res/ $libdir
al@19838 40 cp -a $src/usr/local/share/PeaZip/peazip $libdir
al@19838 41 cp -a $src/usr/local/share/PeaZip/copying.txt $libdir
al@19838 42 cp -a $src/usr/local/share/PeaZip/peazip_help.pdf $libdir
al@19838 43 cp -a $src/usr/local/share/icons/peazip.png $icodir
al@19838 44
al@19838 45 # Desktop entry for Peazip
al@19838 46 cp $stuff/*.desktop $appdir
al@19838 47 # PCManFM desktop integration (PeaZip context menu)
al@19838 48 cp $stuff/actions/*.desktop $actdir
al@19838 49
al@19838 50 # Symbolic links
al@19838 51 ln -s ../lib/peazip/res/pea $bindir
al@19838 52 ln -s ../lib/peazip/res/pealauncher $bindir
al@19838 53 ln -s ../lib/peazip/peazip $bindir
al@19838 54 ln $libdir/peazip_help.pdf $docdir
al@19838 55
al@19838 56 # Plugins
al@19838 57 cp -a unace/ unrar/ lpaq/ paq/ quad/ $libdir/res/
al@19838 58
al@19838 59 # Fix permissions
al@19838 60 find $install \( -name '*.txt' -o -name '*.7z' -o -name '*.bmp' -o \
al@19838 61 -name '*.readme' -o -name '*.diz' \) -exec chmod 0644 '{}' \;
al@19838 62 find $install -type f \( -perm 0775 -o -perm 0777 \) -exec chmod 0755 '{}' \;
al@19838 63 find $install -type d -exec chmod 0755 '{}' \;
hackdorte@18995 64 }
hackdorte@18995 65
hackdorte@18995 66 # Rules to gen a SliTaz package suitable for Tazpkg.
hackdorte@18995 67 genpkg_rules()
hackdorte@18995 68 {
al@19838 69 case $PACKAGE in
al@19838 70 peazip-plugin-unace)
al@19838 71 copy unace/
al@19838 72 CAT="utilities|UNACE plugin"
al@19838 73 ;;
al@19838 74 peazip-plugin-unrar5)
al@19838 75 copy unrar/
al@19838 76 CAT="utilities|UNRAR5 alternative plugin"
al@19838 77 ;;
al@19838 78 peazip-plugin-additional)
al@19838 79 copy lpaq/ paq/ quad/
al@19838 80 CAT="utilities|additional formats plugin 2"
al@19838 81 ;;
al@19838 82 peazip)
al@19838 83 copy @std
al@19838 84 remove_already_packed
al@19838 85 DEPENDS="atk cairo gdk-pixbuf glib gtk+ pango xorg-libX11 \
al@19838 86 busybox desktop-file-utils gmp libcurl ncurses upx zpaq xdg-utils"
al@19838 87 SUGGESTED="aescrypt gnupg"
al@19838 88 TAGS="archiver bzip2 encryption gzip rar split tar unrar xz zip 7zip"
al@19838 89 ;;
al@19838 90 esac
al@18997 91 }