diff --git a/Formula/bart.rb b/Formula/bart.rb new file mode 100644 index 0000000..928915d --- /dev/null +++ b/Formula/bart.rb @@ -0,0 +1,33 @@ +class Bart < Formula + desc "Micro-CMS for WebAssembly and Spin" + homepage "https://developer.fermyon.com/bartholomew" + version "0.9.0" + + if OS.mac? && Hardware::CPU.intel? + url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-macos-amd64.tar.gz" + sha256 "0f4e5a3844b6d5ef4b7d33a50c69ddba002874da15d2821eea5736216c6ec0d9" + end + + if OS.mac? && Hardware::CPU.arm? + url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-macos-aarch64.tar.gz" + sha256 "85f30737b2eabd5426398b4edaf72d3454fed992d64c7dbeb2c630040588918b" + end + + if OS.linux? && Hardware::CPU.intel? + url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-linux-amd64.tar.gz" + sha256 "6a95803c3c62f67efccbaed1ebf506fdbe458f22e31fad66622b434265539d64" + end + + if OS.linux? && Hardware::CPU.arm? + url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-linux-aarch64.tar.gz" + sha256 "5b031b864e03883ddb740aab8fd4ffaf306d043ba86f90bc5c123cef1ea7f006" + end + + def install + bin.install "bart" + end + + test do + assert_match "bart 0.9.0", shell_output("#{bin}/bart --version") + end +end diff --git a/README.md b/README.md index 6b5752c..6c78ea7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ `brew tap fermyon/tap && brew install fermyon/tap/spin` +### [bart / Bartholomew](https://github.com/fermyon/bartholomew) + +`brew tap fermyon/tap && brew install fermyon/tap/bart` + ## Documentation `brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).