# Contributor: Valery Kartel # Contributor: Natanael Copa # Maintainer: Kiyoshi Aman pkgname=file pkgver=5.36 pkgrel=0 pkgdesc="File type identification utility" url="http://www.darwinsys.com/file/" arch="all" license="BSD-2-Clause" 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() { cd "$builddir" autoreconf -vif } 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="2060219ee5eef286cb2e17bce892401b2e2e411db0f54991899ad895ae535a756c0775168731887ef147e830808dfc8f10f1b87d0a6b3cfaaad4b3e1329ff17e file-5.36.tar.gz"