# Template file for 'irust'
pkgname=irust
version=1.76.1
revision=1
build_style=cargo
make_install_args="--path crates/irust"
short_desc="Cross Platform Rust Repl"
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
license="MIT"
homepage="https://github.com/sigmaSd/IRust"
changelog="https://raw.githubusercontent.com/sigmaSd/IRust/refs/heads/master/CHANGELOG.md"
distfiles="https://github.com/sigmaSd/IRust/archive/refs/tags/irust@${version}.tar.gz"
checksum=67b284bb9c356555a1f7cbf95626d6c64e0e3e5bf2fbafae7a91316057058b68

post_install() {
	vmkdir usr/share/icons/hicolor/scalable/apps
	vinstall distro/io.github.sigmasd.IRust.svg 644\
		"usr/share/icons/hicolor/scalable/apps"
	vinstall distro/io.github.sigmasd.IRust.desktop 644\
		"usr/share/applications"
	vinstall distro/io.github.sigmasd.IRust.metainfo.xml 644\
		"usr/share/metainfo"

	vdoc "${FILESDIR}/README.voidlinux"
	vlicense LICENSE
}
