# Contributor: Valery Kartel # Contributor: Natanael Copa # Maintainer: Síle Ekaterin Liszka pkgname=file pkgver=5.46 pkgrel=0 pkgdesc="File type identification utility" url="https://www.darwinsys.com/file/" arch="all" license="BSD-2-Clause" depends="" makedepends="autoconf automake libtool" subpackages="$pkgname-dev $pkgname-doc libmagic" source="$pkgname-$pkgver.tar.gz::https://github.com/file/file/archive/FILE${pkgver%.*}_${pkgver#*.}.tar.gz" builddir="$srcdir/$pkgname-FILE${pkgver%.*}_${pkgver#*.}" prepare() { autoreconf -vif } build() { ./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="fb8157ee8065feaf57412ccdeee57cd8fc853b54ac49b0ddc818eeb1ca3555a7cfd25dea08996503f7c565dcba8c57fd7e4dc5fe3452872c617f5612a94a8f0e file-5.46.tar.gz"