# Template file for 'bats'
pkgname=bats
version=1.13.0
revision=1
depends="bash"
checkdepends="procps-ng"
short_desc="Bash Automated Testing System"
maintainer="Piraty <mail@piraty.dev>"
license="MIT"
homepage="https://github.com/bats-core/bats-core"
distfiles="https://github.com/bats-core/bats-core/archive/v${version}.tar.gz"
checksum=a85e12b8828271a152b338ca8109aa23493b57950987c8e6dff97ba492772ff3

pre_check() {
	export TERM=linux
}

do_check() {
	./bin/bats --print-output-on-failure --tap test
}

do_install() {
	./install.sh "${DESTDIR}/usr"
}

post_install() {
	vlicense LICENSE.md
}
