31 lines
882 B
Bash
31 lines
882 B
Bash
# Template file for 'ion'
|
|
pkgname=ion
|
|
version=1.0.5.20201230
|
|
revision=1
|
|
_githash=2bc8826a97929b1878375a5c747e5c4cfed2b10b
|
|
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"
|
|
|
|
post_patch() {
|
|
# cannot divide `usize` by `u32`
|
|
cargo update --package lexical-core:0.7.4 --precise 0.7.6
|
|
# cross compilation issues
|
|
cargo update --package num-iter:0.1.41 --precise 0.1.43
|
|
cargo update --package num-integer:0.1.43 --precise 0.1.45
|
|
cargo update --package num-traits:0.2.12 --precise 0.2.15
|
|
}
|
|
|
|
pre_build() {
|
|
echo ${_githash} > git_revision.txt
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|