Subject: [PATCH] gnu: Add atool.
From: Stefan Reichör <[email-masked]>
To: [email-masked]
Date: Fri, 22 Sep 2017 23:49:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 7eeeaf3..76cca5f 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2017 ng0 <[email-masked]>
 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <[email-masked]>
 ;;; Copyright © 2017 Theodoros Foradis <[email-masked]>
+;;; Copyright © 2017 Stefan Reichör <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1572,3 +1573,29 @@ zip archives.  Files can be added from data buffers, files, or compressed data
 copied directly from other zip archives.  Changes made without closing the
 archive can be reverted.")
     (license license:bsd-3)))
+
+(define-public atool
+  (package
+    (name "atool")
+    (version "0.39.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://savannah.nongnu.org/download/atool/atool-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0fvhzip2v08jgnlfpyj6rapan39xlsl1ksgq4lp8gfsai2ah1xma"))))
+    (inputs
+     `(("perl" ,perl)))
+    (build-system gnu-build-system)
+    (synopsis  "Universal tool to manage file archives of various types")
+    (description "The main command is @command{aunpack} which extracts files
+from an archive.  The other commands provided are @command{apack} (to create
+archives), @command{als} (to list files in archives), and @command{acat} (to
+extract files to standard out).  As @command{atool} invokes external programs
+to handle the archives, not all commands may be supported for a certain type
+of archives.")
+    (home-page "http://www.nongnu.org/atool/")
+    (license license:gpl2+)))