pkgname=file pkgver=5.46 pkgrel=1 pkgdesc="File type identification utility" arch=('x86_64') url="https://www.darwinsys.com/file/" license=('custom') groups=('base' 'base-devel') depends=('bzip2' 'glibc' 'libseccomp' 'xz' 'zlib' 'zstd') options=('!emptydirs') source=(https://astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz) sha256sums=(c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088) build() { cd ${pkgname}-${pkgver} CFLAGS+=" -pthread" local configure_args=( --enable-fsect-man5 --enable-libseccomp ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }