summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-30 23:38:20 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-30 23:38:20 (GMT)
commit0849ad4af73e37f61342bf0567aeb2433ee37ada (patch)
treed1eba282f35f2640ad31aafd80da5ac8880ec410 /abs
parent40ce451f06a0c82e300cdba84fa5353b9682c1be (diff)
downloadlinhes_pkgbuild-0849ad4af73e37f61342bf0567aeb2433ee37ada.zip
linhes_pkgbuild-0849ad4af73e37f61342bf0567aeb2433ee37ada.tar.gz
linhes_pkgbuild-0849ad4af73e37f61342bf0567aeb2433ee37ada.tar.bz2
file: upgrade
Diffstat (limited to 'abs')
-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
}