# Template file for 'planarity'
pkgname=planarity
version=4.0.0.0
revision=1
build_style=gnu-configure
short_desc="Graph algorithms for planar embedding and related algorithms"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://github.com/graph-algorithms/edge-addition-planarity-suite/"
distfiles="https://github.com/graph-algorithms/edge-addition-planarity-suite/releases/download/Version_${version}/planarity-${version}.tar.gz"
checksum=df3c86c32fd37b801079aea7de67675efdef12ada557cbcaae821e81b8db438d

post_extract() {
	# this file has CRLF line terminators, confuses sh
	vsed -e 's/\r$//' -i test-samples.sh.in
}

post_install() {
	vlicense LICENSE.TXT
}

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