homebrew-core/Formula/lbdb.rb

33 lines
1.4 KiB
Ruby

class Lbdb < Formula
desc "Little brother's database for the mutt mail reader"
homepage "https://www.spinnaker.de/lbdb/"
url "https://www.spinnaker.de/lbdb/download/lbdb_0.49.tar.gz"
sha256 "f565b64a0bc8edb2a5a273e305d5cdecd9053d834fb96f6b2b2f353c99c3c887"
license "GPL-2.0-or-later"
livecheck do
url "https://www.spinnaker.de/lbdb/download/"
regex(/href=.*?lbdb[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "66ef5f18f5b725ae8bdac2fb8afeb05926a795efa259c3c735909ee81d5c4a70"
sha256 cellar: :any_skip_relocation, big_sur: "169649d76f8f4321f9f682b54aad89d918945463e3d0b855385d017d6671fbd4"
sha256 cellar: :any_skip_relocation, catalina: "9c79b0bbc8d13e16259bce83501a2d3f285f3ca2c6675f49cdb36a4ef4366fa1"
sha256 cellar: :any_skip_relocation, mojave: "71c3c794994b1ec594bdbbef70848c0e5bb43ab1f19e1edff7e0d17e9a2f9e98"
sha256 cellar: :any_skip_relocation, high_sierra: "03f4287b844059e3bc9787c97bc22b903a57067add3c3fe2913d2ca53537d34f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "16f661d1451e25627a72e7eb3dd822179a0ec3b4fe6e1212c6e0ae9de4eddf4a"
end
depends_on "abook"
def install
system "./configure", "--prefix=#{prefix}", "--libdir=#{lib}/lbdb"
system "make", "install"
end
test do
assert_match version.major_minor.to_s, shell_output("#{bin}/lbdbq -v")
end
end