aboutsummaryrefslogtreecommitdiffstats
path: root/community/bats/APKBUILD
blob: fe039f95c16a1e9c7fbe5eb96d51c5812ae391ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Jose-Luis Rivas <ghostbar@riseup.net>
pkgname=bats
pkgver=1.1.0
pkgrel=0
pkgdesc="Bash Automated Testing System"
url="https://github.com/bats-core/bats-core"
arch="noarch"
license="MIT"
depends="bash"
subpackages="$pkgname-doc"
depends_doc="man"
source="$pkgname-$pkgver.zip::https://github.com/bats-core/bats-core/archive/v$pkgver.zip"
builddir="$srcdir/bats-core-$pkgver"

check() {
	cd "$builddir"
	bash -c 'bin/bats --tap test'
}

package() {
	cd "$builddir"
	./install.sh "$pkgdir"/usr
}
sha512sums="accd83cfec0025a2be40982b3f9a314c2bbf72f5c85daffa9e9419611904a8d34e376919a5d53e378382e0f3794d2bd781046d810225e2a77812474e427bed9e  bats-1.1.0.zip"