Subject: bug#25909: [PATCH] gnu: Add unrar.

From: John Darrington <[email-masked]>
Date: Wed, 1 Mar 2017 07:01:37 +0100

* gnu/packages/compression.scm (unrar): New variable.
---
 gnu/packages/compression.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 9897883..73b2b84 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1128,3 +1128,21 @@ or junctions, and always follows hard links.")
                    ;; libzpaq.cpp contains a mix of public-domain and
                    ;; expat-licenced (or ‘MIT’) code.
                    license:expat))))
+
+(define-public unrar
+  (package
+    (name "unrar")
+    (version "0.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://download.gna.org/unrar/unrar-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1fgmjaxffj3shyxgy765jhxwz1cq88hk0fih1bsdzyvymyyz6mz7"))))
+    (build-system gnu-build-system)
+    (home-page "http://download.gna.org/unrar")
+    (synopsis "RAR archive extraction tool")
+    (description "Unrar is a simple command-line program to list and extract
+RAR archives.")
+    (license license:gpl2+)))
-- 
2.1.4