# Template file for 'spotatui'
pkgname=spotatui
version=0.38.2
revision=1
build_style=cargo
hostmakedepends="pkgconf cmake clang rust-bindgen"
makedepends="openssl-devel dbus-devel libxcb-devel alsa-lib-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Fully standalone Spotify client for the terminal"
maintainer="Vitali Kaplich <vitalik.kaplich@yandex.by>"
license="MIT"
homepage="https://github.com/LargeModGames/spotatui"
changelog="https://github.com/LargeModGames/spotatui/releases/tag/v${version}"
distfiles="https://github.com/LargeModGames/spotatui/archive/refs/tags/v${version}.tar.gz"
checksum=8f478fe3706c6815c83c6971fb1d78c8500c9cb7e46137099027931b3c4e9496

post_install() {
	vlicense LICENSE

	vinstall snap/gui/spt.desktop 644 usr/share/applications spotatui.desktop
	vinstall snap/gui/spt.png 644 usr/share/pixmaps spotatui.png
	vsed -i 's/Exec=spt/Exec=spotatui/' ${DESTDIR}/usr/share/applications/spotatui.desktop
	vsed -i 's|Icon=.*|Icon=spotatui|' ${DESTDIR}/usr/share/applications/spotatui.desktop
}
