Skip to content

Commit

Permalink
contrib/bats: new package (1.11.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgersen authored and nekopsykose committed May 20, 2024
1 parent 25e9524 commit 19dfa14
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions contrib/bats/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pkgname = "bats"
pkgver = "1.11.0"
pkgrel = 0
hostmakedepends = ["bash"]
checkdepends = ["bash", "procps"]
depends = ["bash"]
pkgdesc = "Bash Automated Testing System"
maintainer = "hge <h.gersen@gmail.com>"
license = "MIT"
url = "https://github.com/bats-core/bats-core"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "aeff09fdc8b0c88b3087c99de00cf549356d7a2f6a69e3fcec5e0e861d2f9063"


def do_check(self):
self.do(
"./bin/bats",
"--tap",
"test",
env={"TERM": "dumb"},
)


def do_install(self):
self.do(
"./install.sh",
self.chroot_destdir / "usr",
)
self.install_license("LICENSE.md")

0 comments on commit 19dfa14

Please sign in to comment.