# Contributor: Valery Kartel # Contributor: Natanael Copa # Maintainer: Kiyoshi Aman pkgname=file pkgver=5.35 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="ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" 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="cbecc52e9209be8bc090752d0672efa181625d4e1e688e63edd1f5657b29bad69364a477fb4ed85d1fa413b8002c8578c86153d2acaaecce78446c0ca6ea9e38 file-5.35.tar.gz"