# Template file for 'ion'
pkgname=ion
version=1.0.5.20201230
revision=1
_githash=2bc8826a97929b1878375a5c747e5c4cfed2b10b
wrksrc="${pkgname}-${_githash}"
build_style=cargo
short_desc="Ion shell, written in Rust"
maintainer="Muhammad Herdiansyah <herdiansyah@opmbx.org>"
license="MIT"
homepage="https://github.com/redox-os/ion"
distfiles="${homepage}/archive/${_githash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=8ab295c5ff40de6b7a8dd93ee8d417b6e884f2b66b628409e4cd9345d70e9c00
register_shell="/bin/ion"

pre_build() {
	echo ${_githash} > git_revision.txt
}

post_install() {
	vlicense LICENSE
}
