diff options
author | root <root@rshg054.dnsready.net> | 2012-01-02 23:14:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-02 23:14:48 +0000 |
commit | 48c96871761a4aad193d814e87ddb87c322e17d2 (patch) | |
tree | 60a798c3bbdef2ba8f51c6719e80b5552a9fb6d4 /testing/file/PKGBUILD | |
parent | 29f5aa692a3fa3ff3e743a47d1c57f1cc0341809 (diff) |
Mon Jan 2 23:14:48 UTC 2012
Diffstat (limited to 'testing/file/PKGBUILD')
-rw-r--r-- | testing/file/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/file/PKGBUILD b/testing/file/PKGBUILD new file mode 100644 index 000000000..ee50d610f --- /dev/null +++ b/testing/file/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 145811 2012-01-02 01:45:52Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@archlinux.org> + +pkgname=file +pkgver=5.10 +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=('4cea34b087b060772511e066e2038196') + +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 +} |