summaryrefslogtreecommitdiff
path: root/testing/file
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-16 13:48:38 +0000
committerroot <root@rshg047.dnsready.net>2011-04-16 13:48:38 +0000
commitec549f64c923643d4b13dd7d364e080840ae3e29 (patch)
treecb680711dd6875847036bbd555f4c2539e433690 /testing/file
parent5d3c3e85c503dae5753d1b7e92b7cdc3b3a2b34b (diff)
Sat Apr 16 13:48:38 UTC 2011
Diffstat (limited to 'testing/file')
-rw-r--r--testing/file/PKGBUILD39
-rw-r--r--testing/file/file-5.05-zip64.patch11
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/file/PKGBUILD b/testing/file/PKGBUILD
new file mode 100644
index 000000000..c7dd791be
--- /dev/null
+++ b/testing/file/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 119819 2011-04-15 12:49:27Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=file
+pkgver=5.06
+pkgrel=1
+pkgdesc="File type identification utility"
+arch=('i686' 'x86_64')
+license=('custom')
+groups=('base')
+url="http://www.darwinsys.com/file/"
+depends=('glibc' 'zlib')
+options=('!libtool')
+source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ file-5.05-zip64.patch)
+md5sums=('deb12b0fb9d09e7681be72bad6eba4e0'
+ '385f020467debd98bd2d8df6143f93d0')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
+
+ # identify zip64 files
+ patch -Np1 -i ${srcdir}/file-5.05-zip64.patch
+
+ ./configure --prefix=/usr --datadir=/usr/share/file
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR=${pkgdir} install
+ install -dm755 ${pkgdir}/usr/share/misc
+ ln -s ../file/magic.mgc ${pkgdir}/usr/share/misc
+
+ install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
diff --git a/testing/file/file-5.05-zip64.patch b/testing/file/file-5.05-zip64.patch
new file mode 100644
index 000000000..2c9aede5f
--- /dev/null
+++ b/testing/file/file-5.05-zip64.patch
@@ -0,0 +1,11 @@
+diff -Naur file-5.05-old//magic/Magdir/archive file-5.05/magic/Magdir/archive
+--- file-5.05-old//magic/Magdir/archive 2011-01-08 06:24:25.000000000 +1000
++++ file-5.05/magic/Magdir/archive 2011-01-19 14:37:47.766673895 +1000
+@@ -688,6 +688,7 @@
+ >>4 byte 0x0b \b, at least v1.1 to extract
+ >>0x161 string WINZIP \b, WinZIP self-extracting
+ >>4 byte 0x14 \b, at least v2.0 to extract
++>>4 byte 0x2d \b, at least v3.0 to extract
+
+ # Zoo archiver
+ 20 lelong 0xfdc4a7dc Zoo archive data