summaryrefslogtreecommitdiff
path: root/testing/file
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-05 23:14:36 +0000
committerroot <root@rshg054.dnsready.net>2011-08-05 23:14:36 +0000
commit6eacc0759bca4167f2dcd67ce43bca78cb2a06ca (patch)
tree9924a03656bbae858177323b61bfb213fe14a4b4 /testing/file
parent7e5cd77730015792e26338edcc137acf3f1bd2ae (diff)
Fri Aug 5 23:14:36 UTC 2011
Diffstat (limited to 'testing/file')
-rw-r--r--testing/file/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/file/PKGBUILD b/testing/file/PKGBUILD
new file mode 100644
index 000000000..4d7b9cf95
--- /dev/null
+++ b/testing/file/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 134479 2011-08-04 09:59:01Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=file
+pkgver=5.08
+pkgrel=1
+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=('6a2a263c20278f01fe3bb0f720b27d4e')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
+
+ ./configure --prefix=/usr --datadir=/usr/share/file
+ make
+}
+
+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
+}