diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/hashcash.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/hashcash.rb b/Library/Formula/hashcash.rb new file mode 100644 index 000000000..5477fe87f --- /dev/null +++ b/Library/Formula/hashcash.rb @@ -0,0 +1,19 @@ +require "formula" + +class Hashcash < Formula + homepage "http://hashcash.org" + url "http://hashcash.org/source/hashcash-1.22.tgz" + sha1 "0fa03c9f266026e505c0ab7b671ad93aef9310de" + + def install + system "make", "install", + "PACKAGER=HOMEBREW", + "INSTALL_PATH=#{bin}", + "MAN_INSTALL_PATH=#{man1}", + "DOC_INSTALL_PATH=#{doc}" + end + + test do + system "#{bin}/hashcash", "-mb10", "test@example.com" + end +end |
