# Maintainer: Daryl Ronningen pkgname=file pkgver=5.45 pkgrel=1 pkgdesc='File type identification utility' arch=('x86_64') license=('custom') url='https://www.darwinsys.com/file/' #depends=('xz' 'zstd') source=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz") sha256sums=('fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82') build() { cd $pkgname-$pkgver # Fix linking libmagic (vfork needs libpthread) CFLAGS+=" -pthread" ./configure \ --prefix=/usr \ --datadir=/usr/share/file \ --enable-fsect-man5 \ --enable-libseccomp sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }