# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=file pkgver=5.33 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/file/$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="36c9f2e2aa814b5557eef114fdd3de159688c7a3c9632a9f5c6355c4d2a5694cee81279bda80897616fca07289a7fedb1f797439a2903c76dc84870694773c9e file-5.33.tar.gz"