summaryrefslogtreecommitdiffstats
path: root/abs/core/file/PKGBUILD
blob: a7cc7ee330cab0ac1c33d88febe2c1169e5a1111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $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
pkgrel=2
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
}
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
}