summaryrefslogtreecommitdiffstats
path: root/abs/core/file
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/file')
-rw-r--r--abs/core/file/PKGBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/abs/core/file/PKGBUILD b/abs/core/file/PKGBUILD
index a7cc7ee..f182038 100644
--- a/abs/core/file/PKGBUILD
+++ b/abs/core/file/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 65356 2010-01-28 04:43:43Z allan $
+# $Id: PKGBUILD 150976 2012-02-24 12:10:49Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
pkgname=file
-pkgver=5.04
-pkgrel=2
+pkgver=5.11
+pkgrel=1
pkgdesc="File type identification utility"
arch=('i686' 'x86_64')
license=('custom')
@@ -12,17 +12,20 @@ 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')
+source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('16a407bd66d6c7a832f3a5c0d609c27b')
build() {
- cd ${srcdir}/$pkgname-$pkgver
- sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
+
./configure --prefix=/usr --datadir=/usr/share/file
- make || return 1
+ make
}
+
package() {
- cd ${srcdir}/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
make DESTDIR=${pkgdir} install
install -dm755 ${pkgdir}/usr/share/misc
ln -s ../file/magic.mgc ${pkgdir}/usr/share/misc