# Template file for 'bats'
pkgname=bats
version=1.8.2
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=0f2df311a536e625a72bff64c838e67c7b5032e6ea9edcdf32758303062b2f3b

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
}
