# Template file for 'gmio'
pkgname=gmio
version=0.4.1
revision=1
build_style=cmake
configure_args="-DGMIO_USE_BUNDLED_ZLIB=OFF"
makedepends="zlib-devel"
short_desc="C library for geometry input/output"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/fougue/gmio/"
distfiles="https://github.com/fougue/gmio/archive/v${version}.tar.gz"
checksum=d22d5851a2c1e6f08e0410b8a2a642481f5e77ed95a2b90e3cfcb186e7245fab

post_install() {
	vlicense LICENSE.txt
}

gmio-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/src
		vmove "usr/lib/*.a"
	}
}
