# Template file for 'libxls'
pkgname=libxls
version=1.4.0
revision=1
wrksrc="libxls"
build_style=gnu-configure
configure_args="--program-prefix=lib"
short_desc="C library which can read Excel (xls) files"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
hostmakedepends="unzip"
license="2-clause-BSD"
homepage="http://libxls.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip"
checksum=d3baea458a511d9b587a367528fa2a7fef410113ac9f6359834469b8f8d10dbd

post_install() {
	sed '/^$/q' include/libxls/xls.h >LICENSE
	vlicense LICENSE
}
libxls-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/*.a
	}
}
