void-packages/srcpkgs/wren-cli/template

29 lines
736 B
Bash

# Template file for 'wren-cli'
pkgname=wren-cli
version=0.4.0
revision=1
build_wrksrc=projects/make
build_style=gnu-makefile
make_build_args="config=release_${XBPS_TARGET_WORDSIZE}bit"
checkdepends="python3"
short_desc="Small, class-based, concurrent scripting language - CLI"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="MIT"
homepage="http://wren.io/cli"
distfiles="https://github.com/wren-lang/wren-cli/archive/refs/tags/${version}.tar.gz"
checksum=fafdc5d6615114d40de3956cd3a255e8737dadf8bd758b48bac00db61563cb4c
post_patch() {
vsed -i -e 's/ -m64 / /;s/ -m32 / /;s/ -O3//' wren_cli.make
}
do_check() {
cd ../..
python3 util/test.py
}
do_install() {
vbin ${wrksrc}/bin/wren_cli wren
vlicense ${wrksrc}/LICENSE
}