From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] Add cabextract. Date: Sat, 16 Apr 2016 20:05:55 +0200 Message-ID: <20160416200555.40122bfd@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arUbd-0007LW-Bu for guix-devel@gnu.org; Sat, 16 Apr 2016 14:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arUbY-00026g-Bd for guix-devel@gnu.org; Sat, 16 Apr 2016 14:06:05 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:47182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arUbY-00026c-5s for guix-devel@gnu.org; Sat, 16 Apr 2016 14:06:00 -0400 Received: from localhost (91.141.2.40.wireless.dyn.drei.com [91.141.2.40]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 4D0BA1CA0622 for ; Sat, 16 Apr 2016 20:05:57 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, this patch adds cabextract, an extractor for CAB files. (libmspack is already in, but cabextract isn't) * gnu/packages/compression.scm (cabextract): New variable. --- b/gnu/packages/compression.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 938d4b8..9343e85 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -688,3 +688,26 @@ a collection of smaller blocks which makes random access to the original data possible and can compress in parallel. This is especially useful for large tarballs.") (license license:bsd-2))) + +(define-public cabextract + (package + (name "cabextract") + (version "1.6") + (source (origin + (method url-fetch) + (uri (string-append + "http://cabextract.org.uk/cabextract-" version ".tar.gz")) + (sha256 + (base32 + "1ysmmz25fjghq7mxb2anyyvr1ljxqxzi4piwjhk0sdamcnsn3rnf")))) + (build-system gnu-build-system) + (arguments '(#:configure-flags '("--with-external-libmspack"))) + (native-inputs + `(("pkg-config" ,pkg-config) + )) + (inputs + `(("libmspack" ,libmspack))) + (home-page "http://www.cabextract.org.uk/") + (synopsis "CAB Extractor") + (description "cabextract extracts files from CAB archives.") + (license (list license:gpl2 license:gpl3))))