1 #Contributor:Xemertix <arch88(at)katamail(dot)com>
7 pkgdesc="File type identification utility (32 bit)"
10 url="http://www.darwinsys.com/file/"
11 depends=('lib32-zlib')
13 source=(ftp://ftp.astron.com/pub/${namedest}/${namedest}-${pkgver}.tar.gz
14 file-5.04-python-2.7.patch
15 file-5.04-zip64.patch)
16 md5sums=('accade81ff1cc774904b47c72c8aeea0'
17 '4f223a3ff4f157320f1e6faffc4afb88'
18 'b547eb3430adb3deb756d3a43dd7ad46')
21 cd "${srcdir}/${namedest}-${pkgver}"
23 sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
25 # identify python 2.7 byte-compiled files
26 patch -Np1 -i ../file-5.04-python-2.7.patch
28 # identify zip64 files
29 patch -Np1 -i ../file-5.04-zip64.patch
34 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
35 ./configure --prefix=/usr --libdir=/usr/lib32 --datadir=/usr/share/file
37 make DESTDIR=${pkgdir} install
39 rm -r ${pkgdir}/usr/{bin,include,share}