Date: Wednesday, May 16, 2018 @ 22:39:02 Author: seblu Revision: 324384
archrelease: copy trunk to testing-x86_64 Added: file/repos/testing-x86_64/ file/repos/testing-x86_64/PKGBUILD (from rev 324383, file/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: file/repos/testing-x86_64/PKGBUILD (from rev 324383, file/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-05-16 22:39:02 UTC (rev 324384) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Sébastien Luttringer <se...@archlinux.org> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: Andreas Radke <andy...@archlinux.org> + +pkgname=file +pkgver=5.33 +pkgrel=2 +pkgdesc='File type identification utility' +arch=('x86_64') +license=('custom') +groups=('base' 'base-devel') +url='https://www.darwinsys.com/file/' +depends=('glibc' 'zlib' 'libseccomp') +source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}) +validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas +md5sums=('bbe6db96e3a9ca9554dce647390540ef' + 'SKIP') + +prepare() { + cd $pkgname-$pkgver + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do + if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" + fi + done + : +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --datadir=/usr/share/file --enable-fsect-man5 + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} + +# vim:set ts=2 sw=2 et: