# Template file for 'double-conversion'
pkgname=double-conversion
version=3.4.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
short_desc="Efficient binary-decimal and decimal-binary routines for IEEE doubles"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/google/double-conversion"
changelog="https://github.com/google/double-conversion/releases"
distfiles="https://github.com/google/double-conversion/archive/v${version}.tar.gz"
checksum=42fd4d980ea86426e457b24bdfa835a6f5ad9517ddb01cdb42b99ab9c8dd5dc9

if [ "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -DBUILD_TESTING=ON"
fi

post_install() {
	vlicense LICENSE
}

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