# Maintainer: Brokenpip3 pkgname=bash-bats-detik pkgver=1.1.0 pkgrel=1 pkgdesc="A library to ease e2e tests of applications in K8s environments with bats" arch=("any") url="https://github.com/bats-core/bats-detik" license=("MIT") depends=('bash-bats') source=("https://github.com/bats-core/bats-detik/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('c2b5414ff1d52655a4aefe266dc96be23591fbcfed288d16ec656fb0bedcd8c4da370767000b5c59faba1c34dea0c2767ec2684cb48d0d220a50472e23a0019f') check() { cd "${srcdir}/bats-detik-${pkgver}" bats tests } package() { cd "${srcdir}/bats-detik-${pkgver}" for fn in lib/*.bash; do install -Dm755 ${fn} "${pkgdir}/usr/lib/bats-detik/$(basename $fn)" done install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }