# Template file for 'flann'
pkgname=flann
version=1.9.1
revision=4
build_style=cmake
makedepends="gtest-devel hdf5-devel"
short_desc="Fast library for approximate nearest neighbors"
maintainer="Florian Eich <flrn@nrmncr.net>"
license="BSD"
homepage="http://www.cs.ubc.ca/research/${pkgname}/"
distfiles="https://github.com/mariusmuja/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=b23b5f4e71139faa3bcb39e6bbcc76967fbaf308c4ee9d4f5bfbeceaa76cc5d3

post_install() {
	vlicense COPYING
}

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