# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=file pkgver=5.38 pkgrel=0 pkgdesc="File type identification utility" url="https://www.darwinsys.com/file" arch="all" license="BSD-2-Clause" makedepends="autoconf libtool automake" subpackages="$pkgname-dev $pkgname-doc libmagic" source="$pkgname-$pkgver.tar.gz::https://github.com/file/file/archive/FILE${pkgver/./_}.tar.gz " builddir="$srcdir/$pkgname-FILE${pkgver/./_}" # secfixes: # 5.37-r1: # - CVE-2019-18218 # 5.36-r0: # - CVE-2019-1543 # - CVE-2019-8904 # - CVE-2019-8905 # - CVE-2019-8906 # - CVE-2019-8907 build() { SH_LIBTOOL='/usr/share/build-1/libtool' autoreconf -f -i ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --datadir=/usr/share make } check() { make check } package() { make DESTDIR="$pkgdir" install } libmagic() { pkgdesc="File type identification library" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr } sha512sums="b8920b0b886600b50ef83d949028972e99830d5ac2e9545a5ff7177e5f4c3db20bfc00884d6b6961e4707a920f0290c59ae89439a02cd8cc2a8673284c4100c4 file-5.38.tar.gz"