summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/file/PKGBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/abs/core/file/PKGBUILD b/abs/core/file/PKGBUILD
index 63a224f..a7cc7ee 100644
--- a/abs/core/file/PKGBUILD
+++ b/abs/core/file/PKGBUILD
@@ -1,9 +1,10 @@
-# $Id: PKGBUILD 4745 2008-07-09 19:17:02Z andyrtr $
-# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# $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=4.25
-pkgrel=10
+pkgver=5.04
+pkgrel=2
pkgdesc="File type identification utility"
arch=('i686' 'x86_64')
license=('custom')
@@ -12,12 +13,19 @@ url="http://www.darwinsys.com/file/"
depends=('glibc' 'zlib')
options=('!libtool')
source=(ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('cdf1f90d2704e71118353c16c19898ba')
+md5sums=('accade81ff1cc774904b47c72c8aeea0')
build() {
cd ${srcdir}/$pkgname-$pkgver
- ./configure --prefix=/usr --datadir=/usr/share/misc
+ 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
}