monero 0.11.1.0 (new formula)
Closes #22056. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
cc63d6bc2b
commit
4a619d5001
1 changed files with 28 additions and 0 deletions
28
Formula/monero.rb
Normal file
28
Formula/monero.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
class Monero < Formula
|
||||
desc "Official monero wallet and cpu miner"
|
||||
homepage "https://getmonero.org/"
|
||||
url "https://github.com/monero-project/monero/archive/v0.11.1.0.tar.gz"
|
||||
sha256 "b5b48d3e5317c599e1499278580e9a6ba3afc3536f4064fcf7b20840066a509b"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "boost"
|
||||
depends_on "openssl"
|
||||
depends_on "readline"
|
||||
|
||||
def install
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
cmd = "#{bin}/monero-wallet-cli --restore-deterministic-wallet " \
|
||||
"--password brew-test --restore-height 1 --generate-new-wallet wallet " \
|
||||
"--electrum-seed 'baptism cousin whole exquisite bobsled fuselage left " \
|
||||
"scoop emerge puzzled diet reinvest basin feast nautical upon mullet " \
|
||||
"ponies sixteen refer enhanced maul aztec bemused basin'" \
|
||||
"--command address"
|
||||
address = "4BDtRc8Ym9wGzx8vpkQQvpejxBNVpjEmVBebBPCT4XqvMxW3YaCALFraiQibejyMAxUXB5zqn4pVgHVm3JzhP2WzVAJDpHf"
|
||||
assert_equal address, shell_output(cmd).split[-1]
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue