updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / lib32-file / PKGBUILD
blob2b93e41769345318b28d019fcc44f6f69af7f1c2
1 #Contributor:Xemertix <arch88(at)katamail(dot)com>
3 namedest=file
4 pkgname=lib32-file
5 pkgver=5.04
6 pkgrel=1
7 pkgdesc="File type identification utility (32 bit)"
8 arch=('x86_64')
9 license=('custom')
10 url="http://www.darwinsys.com/file/"
11 depends=('lib32-zlib')
12 options=('!libtool')
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')
20 build() {
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
31   export ABI="32"
32   export CC="gcc -m32"
33   export CXX="g++ -m32"
34   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
35   ./configure --prefix=/usr --libdir=/usr/lib32 --datadir=/usr/share/file
36   make 
37   make DESTDIR=${pkgdir} install
39   rm -r ${pkgdir}/usr/{bin,include,share}