diff options
Diffstat (limited to 'core/file/PKGBUILD')
-rw-r--r-- | core/file/PKGBUILD | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/core/file/PKGBUILD b/core/file/PKGBUILD index 859091149..9d2291d7f 100644 --- a/core/file/PKGBUILD +++ b/core/file/PKGBUILD @@ -1,37 +1,29 @@ -# $Id: PKGBUILD 207101 2014-03-06 12:36:01Z allan $ -# Maintainer: Allan McRae <allan@archlinux.org> +# $Id: PKGBUILD 210213 2014-04-11 23:33:00Z seblu $ +# Mainainer: Sébastien Luttringer <seblu@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: Andreas Radke <andyrtr@archlinux.org> pkgname=file -pkgver=5.17 -pkgrel=2 -pkgdesc="File type identification utility" +pkgver=5.18 +pkgrel=1 +pkgdesc='File type identification utility' arch=('i686' 'x86_64') license=('custom') groups=('base' 'base-devel') -url="http://www.darwinsys.com/file/" +url='http://www.darwinsys.com/file/' depends=('glibc' 'zlib') -source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz - file-5.17-off-by-one.patch) -md5sums=('e19c47e069ced7b01ccb4db402cc01d3' - 'f36a87784f1db2e415ce09badb38fbe8') - -prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - - # https://github.com/file/file/commit/70c65d2e1841 - patch -p1 -i $srcdir/file-5.17-off-by-one.patch -} +source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('d420d8f2990cd344673acfbf8d76ff5a') build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd $pkgname-$pkgver ./configure --prefix=/usr --datadir=/usr/share/file - make + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR=${pkgdir} install - - install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + rmdir "$pkgdir/usr/share/man/man5" } |