aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMatt Mastracci2015-01-04 13:57:25 -0700
committerMike McQuaid2015-01-05 18:38:15 +0000
commite459f9cf2695c1d3cfd37cb1705a14d68697ac1e (patch)
treeba822702e9772deeb4cf966ac5ab5d3c9fb9b0a2 /Library
parent35b453a8f2897d8b92b3a6a6baef95775bc2311e (diff)
downloadhomebrew-e459f9cf2695c1d3cfd37cb1705a14d68697ac1e.tar.bz2
unarj 2.65 (new formula)
Adding formula for unarj. Closes #35548. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/unarj.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/unarj.rb b/Library/Formula/unarj.rb
new file mode 100644
index 000000000..2d2850279
--- /dev/null
+++ b/Library/Formula/unarj.rb
@@ -0,0 +1,24 @@
+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"
+ sha1 "e30242ab0cb521bae89472a552219a06fdddb389"
+
+ resource "testfile" do
+ url "http://s3.amazonaws.com/ARJ/ARJ286.EXE"
+ sha1 "dfa0b273c6e480fb6566816796e67d19e4b62f1b"
+ 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