# Template file for 'tomlplusplus'
pkgname=tomlplusplus
version=3.4.0
revision=1
build_style=meson
hostmakedepends="cmake-bootstrap"
short_desc="TOML config parser and serializer for C++"
maintainer="Cass Spencer <casscardboard@gmail.com>"
license="MIT"
homepage="https://marzer.github.io/tomlplusplus/"
distfiles="https://github.com/marzer/tomlplusplus/archive/refs/tags/v${version}.tar.gz"
checksum=8517f65938a4faae9ccf8ebb36631a38c1cadfb5efa85d9a72e15b9e97d25155

pre_configure() {
	PATH+=":/usr/libexec/xbps-src/bin"
}

post_install() {
	vlicense LICENSE
}

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