# Template file for 'shapelib'
pkgname=shapelib
version=1.6.2
revision=1
build_style=cmake
# This requires `git` to download some stuff
configure_args="-DBUILD_TESTING=OFF"
short_desc="Library for reading and writing of ESRI Shapefiles"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-2.0-only"
homepage="http://shapelib.maptools.org/"
distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"
checksum=4b74a36ced94e9a7bea401157e664addcc5be251e7df7f88d4674361da012c21

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

shapelib-tools_package() {
	short_desc+=" - tools"
	pkg_install() {
		vmove usr/bin
	}
}
