41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
class Mpw < Formula
|
|
desc "Master Password for the terminal"
|
|
homepage "https://ssl.masterpasswordapp.com/"
|
|
url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz"
|
|
version "2.1-cli4"
|
|
sha256 "6ea76592eb8214329072d04f651af99d73de188a59ef76975d190569c7fa2b90"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "03d033152f2da377654b0dabd823e304827fad58d08ab3c945978f61c5aba5bf" => :sierra
|
|
sha256 "23055a80705a261f15bf1f36cce7919dda62457b06c4af1bc1137ed172aa6844" => :el_capitan
|
|
sha256 "34b22632d5d225bcbc6b24dada0ce2b526c6739b9b0e55e9b1209f265d0a6888" => :yosemite
|
|
sha256 "290586cc77c94562e08977227209e16b9b821cb84e068bcf748b2e0ce07bdb0f" => :mavericks
|
|
end
|
|
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "openssl"
|
|
|
|
resource "libscrypt" do
|
|
url "https://ssl.masterpasswordapp.com/libscrypt-b12b554.tar.gz"
|
|
sha256 "c726daec68a345e420896f005394a948dc5a6924713ed94b684c856d4c247f0b"
|
|
end
|
|
|
|
def install
|
|
resource("libscrypt").stage buildpath/"lib/scrypt"
|
|
touch "lib/scrypt/.unpacked"
|
|
|
|
ENV["targets"] = "mpw mpw-tests"
|
|
system "./build"
|
|
system "./mpw-tests"
|
|
|
|
bin.install "mpw"
|
|
end
|
|
|
|
test do
|
|
assert_equal "RoliQeka7/Deqi",
|
|
shell_output("#{bin}/mpw -u user -P password test.com 2>/dev/null").strip
|
|
end
|
|
end
|