void-packages/srcpkgs/ternimal/template

24 lines
594 B
Bash

# Template file for 'ternimal'
pkgname=ternimal
version=0.1.0
revision=2
hostmakedepends="rust"
makedepends="rust-std"
short_desc="Simulate a lifeform in the terminal"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/p-e-w/ternimal"
distfiles="https://github.com/p-e-w/ternimal/archive/v${version}.tar.gz"
checksum=4d37f49a35de5ac23d88a61180d663ba3c2da089418818a588de31f9e920f8d6
do_build() {
rustc --target $RUST_TARGET \
-C linker=$CC \
${CROSS_BUILD:+--sysroot $XBPS_CROSS_BASE/usr} \
-O ternimal.rs
}
do_install() {
vbin ternimal
}