wok-current rev 19373
xarchive: add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:08:33 2016 +0200 (2016-08-10) |
parents | d89c4543b157 |
children | 81d24f5c2cc9 |
files | xarchive/receipt xarchive/stuff/slitaz-wrap.sh |
line diff
1.1 --- a/xarchive/receipt Tue Aug 09 14:31:24 2016 +0200 1.2 +++ b/xarchive/receipt Wed Aug 10 14:08:33 2016 +0200 1.3 @@ -8,7 +8,7 @@ 1.4 LICENSE="GPL2" 1.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.6 SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract \ 1.7 -xz lrzip" 1.8 +xz lrzip nanozip" 1.9 WEB_SITE="http://xarchive.sourceforge.net/" 1.10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.11 1.12 @@ -39,4 +39,3 @@ 1.13 sed -i 's|#!\s*/bin/bash|#!/bin/sh|' $install/usr/lib/xarchive/wrappers/* 1.14 cp $stuff/slitaz-wrap.sh $fs/usr/lib/xarchive/wrappers 1.15 } 1.16 -
2.1 --- a/xarchive/stuff/slitaz-wrap.sh Tue Aug 09 14:31:24 2016 +0200 2.2 +++ b/xarchive/stuff/slitaz-wrap.sh Wed Aug 10 14:08:33 2016 +0200 2.3 @@ -46,6 +46,7 @@ 2.4 LHA_EXTS="lha lzh lzs" 2.5 LZO_EXTS="lzo" 2.6 ARJ_EXTS="arj pak arc j uc2 zoo" 2.7 +NZ_EXTS="nz" 2.8 _7Z_EXTS="7z bcj bcj2 wim $BZIP2_EXTS $ZIP_EXTS $XZ_EXTS" 2.9 _7Z_EXTS_X="chm cramfs dmg hfs mbr msi nsis ntfs udf vhd xar arj cab lzh rar \ 2.10 udf cpio $ISO_EXTS $FAT_EXTS $SQUASHFS_EXTS" 2.11 @@ -315,6 +316,7 @@ 2.12 rar $RAR_EXTS 2.13 unace ace 2.14 arj $ARJ_EXTS 2.15 +nz $NZ_EXTS 2.16 7zr $_7Z_EXTS $_7Z_EXTS_X 2.17 lha $LHA_EXTS 2.18 lzop $LZO_EXTS 2.19 @@ -432,6 +434,25 @@ 2.20 /^[\t ]+SymLink -> / { link=$3; attr="l"substr(attr, 2) } 2.21 /^---/ { display() } 2.22 ' 2.23 +# Archive: nz.nz 2.24 +# checksum perm yyyy-mmm-dd hh:mm:ss size file 2.25 +# 387b9923 0755 2016-Aug-10 13:29:41 1144 KB nz 2.26 +# a52758fb 0644 2016-Aug-10 13:29:41 371 B readme.txt 2.27 +# Total of 3 files, 1 181 184 bytes. 2.28 + in_exts $NZ_EXTS && nz l "$archive" | awku ' 2.29 +{ 2.30 + if ($1 == "checksum") show=1 2.31 + else if ($1 == "Total") exit 2.32 + else { 2.33 + attr=$2 2.34 + date=$3 2.35 + time=$4 2.36 + size=$5 $6 2.37 + name=$7 2.38 + display() 2.39 + } 2.40 +} 2.41 +' 2.42 # Ver Date Time (UT) Attr Size Ratio File 2.43 # ----- ---------- -------- ------ ------------ ------ ---- 2.44 # > 1 2012-04-10 11:47:56 100644 576 0.2611 /etc/skel/.profile 2.45 @@ -484,6 +505,7 @@ 2.46 zip -g\ -r $ZIP_EXTS 2.47 rar a $RAR_EXTS 2.48 arj a $ARJ_EXTS 2.49 +nz a $NZ_EXTS 2.50 7zr a\ -ms=off $_7Z_EXTS 2.51 lha a $LHA_EXTS 2.52 zpaq a $ZPAQ_EXTS 2.53 @@ -533,6 +555,7 @@ 2.54 lzop -x N/A $LZO_EXTS 2.55 rar x\ -o-\ -p- x\ -o- $RAR_EXTS 2.56 arj x\ -y x\ -y\ -g? $ARJ_EXTS 2.57 +nz x N/A $NZ_EXTS 2.58 7zr x\ -y\ -p- x\ -y $_7Z_EXTS $_7Z_EXTS_X 2.59 unace N/A x\ -o\ -y ace 2.60 cabextract -q N/A cab