Date: Saturday, May 14, 2011 @ 05:18:32 Author: tpowa Revision: 123900
upgpkg: file 5.07-2 fix zip file detection Added: file/trunk/file-5.07-zip-detect.patch Modified: file/trunk/PKGBUILD ----------------------------+ PKGBUILD | 10 ++++++---- file-5.07-zip-detect.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-05-14 09:14:33 UTC (rev 123899) +++ PKGBUILD 2011-05-14 09:18:32 UTC (rev 123900) @@ -4,7 +4,7 @@ pkgname=file pkgver=5.07 -pkgrel=1 +pkgrel=2 pkgdesc="File type identification utility" arch=('i686' 'x86_64') license=('custom') @@ -13,9 +13,11 @@ depends=('glibc' 'zlib') options=('!libtool') source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz - file-5.05-zip64.patch) + file-5.05-zip64.patch + file-5.07-zip-detect.patch) md5sums=('b8d1f9a8a644067bd0a703cebf3f4858' - '385f020467debd98bd2d8df6143f93d0') + '385f020467debd98bd2d8df6143f93d0' + 'fe52877b2a812b5a1e6276f4c55003cc') build() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -23,7 +25,7 @@ # identify zip64 files patch -Np1 -i ${srcdir}/file-5.05-zip64.patch - + patch -Np1 -i ${srcdir}/file-5.07-zip-detect.patch ./configure --prefix=/usr --datadir=/usr/share/file make } Added: file-5.07-zip-detect.patch =================================================================== --- file-5.07-zip-detect.patch (rev 0) +++ file-5.07-zip-detect.patch 2011-05-14 09:18:32 UTC (rev 123900) @@ -0,0 +1,12 @@ +--- file-5.07-orig/magic/Magdir/archive 2011-05-14 04:28:25.918516697 +0300 ++++ file-5.07/magic/Magdir/archive 2011-05-14 04:29:14.351587647 +0300 +@@ -565,6 +565,9 @@ + 0 string PK\x07\x08PK\x03\x04 Zip multi-volume archive data, at least PKZIP v2.50 to extract + !:mime application/zip + ++# Zip archiver (Archlinux bugfix: detect generic zip archives) ++0 string PK\003\004 Zip archive data ++ + # Zip archives (Greg Roelofs, c/o zip-b...@wkuvx1.wku.edu) + 0 string PK\003\004 +