diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-06-26 18:16:39 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-06-26 18:16:39 (GMT) |
commit | 3973645fd2caaf0bc2b7e7d40059efcaf723aa17 (patch) | |
tree | b76904fadb6c50c4f863a3601ead9e1ef78b9912 /abs/core/file/PKGBUILD | |
parent | a2da1c03d803187fa6e6b95c73cb5f93c2c74dc6 (diff) | |
download | linhes_pkgbuild-3973645fd2caaf0bc2b7e7d40059efcaf723aa17.zip linhes_pkgbuild-3973645fd2caaf0bc2b7e7d40059efcaf723aa17.tar.gz linhes_pkgbuild-3973645fd2caaf0bc2b7e7d40059efcaf723aa17.tar.bz2 |
file: update to 5.23
Diffstat (limited to 'abs/core/file/PKGBUILD')
-rw-r--r-- | abs/core/file/PKGBUILD | 50 |
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: |