void-packages/srcpkgs/file/template
2015-08-18 12:00:16 +02:00

35 lines
962 B
Bash

# Template file for 'file'
pkgname=file
version=5.24
revision=2
bootstrap=yes
build_pie=yes
build_style=gnu-configure
configure_args="--enable-static"
makedepends="zlib-devel"
short_desc="File type identification utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.darwinsys.com/file/"
license="BSD"
#distfiles="ftp://ftp.astron.com/pub/file/file-${version}.tar.gz"
distfiles="https://distfiles.macports.org/file/file-${version}.tar.gz"
checksum=802cb3de2e49e88ef97cdcb52cd507a0f25458112752e398445cea102bc750ce
libmagic_package() {
short_desc="File type identification library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/share/misc
vmove usr/share/man/man4
}
}
file-devel_package() {
depends="${makedepends} libmagic>=${version}_${revision}"
short_desc="File type identification library - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}