# Template file for 'tangara-companion'
pkgname=tangara-companion
version=0.5.2
revision=1
build_style=meson
build_helper="rust"
hostmakedepends="cargo cargo-auditable pkg-config glib-devel"
makedepends="rust-std gtk4-devel libadwaita-devel"
short_desc="Companion app for the Tangara music player"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-only"
homepage="https://github.com/haileys/tangara-companion"
changelog="https://github.com/haileys/tangara-companion/releases"
distfiles="https://github.com/haileys/tangara-companion/archive/refs/tags/v${version}.tar.gz"
checksum=835ec82076435a19eb37b05fe8ce97af9179b8126a65db20723f3e4f6d5a563b

post_build() {
	cd crates/tangara-cli
	cargo auditable build --release --locked --target "${RUST_TARGET}"
}

post_install() {
	vbin "target/${RUST_TARGET}/release/tangara"
}
