# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=file pkgver=5.36 pkgrel=1 pkgdesc="File type identification utility" url="https://www.darwinsys.com/file" arch="all" license="BSD-2-Clause" subpackages="$pkgname-dev $pkgname-doc libmagic" source="ftp://ftp.astron.com/pub/file/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 5.36-r0: # - CVE-2019-1543 # - CVE-2019-8904 # - CVE-2019-8905 # - CVE-2019-8906 # - CVE-2019-8907 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --datadir=/usr/share make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } libmagic() { pkgdesc="File type identification library" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr } sha512sums="3ec5e51ffb7a82defa74845a90fbc983f6e169fc116606049bc01ff6e720d340c8abf6eb7a08b9ac1099162a5c02deac3633b07b039d486344c8abd9052ca751 file-5.36.tar.gz"