2010-03-13 23:25:19 +08:00
|
|
|
# $Id: PKGBUILD 65356 2010-01-28 04:43:43Z allan $
|
|
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
|
|
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=file
|
|
|
|
pkgver=5.04
|
2010-03-22 04:46:45 +08:00
|
|
|
pkgrel=3
|
2010-03-13 23:25:19 +08:00
|
|
|
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)
|
|
|
|
md5sums=('accade81ff1cc774904b47c72c8aeea0')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/$pkgname-$pkgver
|
|
|
|
sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
|
|
|
|
./configure --prefix=/usr --datadir=/usr/share/file
|
|
|
|
make || return 1
|
|
|
|
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
|
|
|
|
}
|