# Template file for 'corrosion'
pkgname=corrosion
version=0.5.0
revision=1
build_style=cmake
hostmakedepends="cargo"
short_desc="Tool for integrating Rust into an existing CMake project"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://github.com/corrosion-rs/corrosion"
distfiles="https://github.com/corrosion-rs/corrosion/archive/refs/tags/v${version}.tar.gz"
checksum=bbe0d4a31cef91b890134af82789fb6e8ecc33270472beea9cecb8f2b7b7ed65

do_check() {
	cd build
	# Require and uses rustup
	ctest -E '(rustup_proxy_build|parse_target_triple_build)'
}

post_install() {
	vlicense LICENSE
}
