2015-01-04 20:57:25 +00:00
|
|
|
class Unarj < Formula
|
|
|
|
homepage "http://www.arjsoftware.com/files.htm"
|
|
|
|
url "http://pkgs.fedoraproject.org/repo/pkgs/unarj/unarj-2.65.tar.gz/c6fe45db1741f97155c7def322aa74aa/unarj-2.65.tar.gz"
|
2015-03-07 12:47:31 +00:00
|
|
|
sha256 "d7dcc325160af6eb2956f5cb53a002edb2d833e4bb17846669f92ba0ce3f0264"
|
2015-01-04 20:57:25 +00:00
|
|
|
|
2015-01-05 18:23:28 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "4cbe4d541f6261ea2da9c7551b9596375a42ff24" => :yosemite
|
|
|
|
sha1 "4ff0b52967309059305f41c49ca9028469d46cce" => :mavericks
|
|
|
|
sha1 "e3fb406acd8fc83d2fa890e82126cf74c225da80" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-04 20:57:25 +00:00
|
|
|
resource "testfile" do
|
2015-03-07 12:47:31 +00:00
|
|
|
url "https://s3.amazonaws.com/ARJ/ARJ286.EXE"
|
|
|
|
sha256 "e7823fe46fd971fe57e34eef3105fa365ded1cc4cc8295ca3240500f95841c1f"
|
2015-01-04 20:57:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.mkdir
|
|
|
|
system "make", "install", "INSTALLDIR=#{bin}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# Ensure that you can extract ARJ.EXE from a sample self-extracting file
|
|
|
|
resource("testfile").stage do
|
|
|
|
system "unarj", "e", "ARJ286.EXE"
|
|
|
|
assert File.exist? "ARJ.EXE"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|