summaryrefslogtreecommitdiffstats
path: root/abs/core/file/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/file/PKGBUILD')
-rw-r--r--abs/core/file/PKGBUILD50
1 files changed, 29 insertions, 21 deletions
diff --git a/abs/core/file/PKGBUILD b/abs/core/file/PKGBUILD
index f182038..805200e 100644
--- a/abs/core/file/PKGBUILD
+++ b/abs/core/file/PKGBUILD
@@ -1,34 +1,42 @@
-# $Id: PKGBUILD 150976 2012-02-24 12:10:49Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
pkgname=file
-pkgver=5.11
-pkgrel=1
-pkgdesc="File type identification utility"
+pkgver=5.23
+pkgrel=2
+pkgdesc='File type identification utility'
arch=('i686' 'x86_64')
license=('custom')
-groups=('base')
-url="http://www.darwinsys.com/file/"
+groups=('base' 'base-devel')
+url='http://www.darwinsys.com/file/'
depends=('glibc' 'zlib')
-options=('!libtool')
-source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('16a407bd66d6c7a832f3a5c0d609c27b')
+source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"
+ '001-fix-bug-with-long-options.patch')
+md5sums=('61db35209ce71a6d576392ce6e1d2f80'
+ '4138dd409ad6d67ee35a61cf3c71b0fe')
+
+prepare() {
+ patch -p1 -d $pkgname-$pkgver < '001-fix-bug-with-long-options.patch'
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
-
+ cd $pkgname-$pkgver
./configure --prefix=/usr --datadir=/usr/share/file
- make
+ make
}
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
- 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
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ rmdir "$pkgdir/usr/share/man/man5"
}
+
+# vim:set ts=2 sw=2 et: