dburkart / check-sieve

Syntax checker for mail sieves.
MIT License
34 stars 7 forks source link

Homebrew formula for macOS installs #46

Open gibfahn opened 3 years ago

gibfahn commented 3 years ago

It would be nice to have a brew formula for installing check-sieve.

Unsure if it's worth it for you to have a whole tap just for this, and I'm not sure this would be accepted into homebrew core just yet, but at least good to provide the formula for anyone coming across this:

# See upstream issue: https://github.com/dburkart/check-sieve/issues/46
class CheckSieve < Formula
  version '0.9'
  sha256 'cc9a8ee4fe3e6464d1934325d2c17c4f37799aedb85d7fda9e00991e23d93c60'

  desc 'CLI to check Sieve files for errors.'
  homepage 'https://github.com/dburkart/check-sieve'
  url "https://github.com/dburkart/check-sieve/archive/refs/tags/check-sieve-#{version}.tar.gz"
  license 'MIT'

  def install
    system 'make', 'install', "INSTALL_PREFIX=#{prefix}"
  end
end

I also pushed it to my personal tap, so can be installed with:

brew install gibfahn/tap/check-sieve
dburkart commented 3 years ago

Thanks for this! I'll leave this open until I figure out whether to create a tap or submit to homebrew core.