# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=shellspec
pkgver=0.28.1
pkgrel=0
pkgdesc="A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells"
url="https://shellspec.info/"
arch="noarch"
license="MIT"
source="$pkgname-$pkgver.tar.gz::https://github.com/shellspec/shellspec/archive/refs/tags/$pkgver.tar.gz"

check() {
	./shellspec --no-banner --task fixture:stat:prepare
	./shellspec --no-banner spec --jobs "$JOBS"
}

package() {
	PREFIX="$pkgdir"/usr make install
}
sha512sums="
a3d1f582a3c76ef240ab9bd0ce3b8433d7ced766b6fa03ed724100917271c2c0ee04909cdc7ea2f92267dc11fdd890d52a4edcc2957c16dbbd331a718e5c564f  shellspec-0.28.1.tar.gz
"
