From 87de8653114475a20235bf91860f622abc8786ec Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 26 Apr 2020 04:47:25 -0400
Subject: [PATCH] gnu: Add xarchiver.
* gnu/packages/compression.scm (xarchiver): New variable.
---
gnu/packages/compression.scm | 37 ++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
@@ -50,6 +50,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system trivial)
@@ -63,6 +64,10 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages documentation)
#:use-module (gnu packages file)
+ #:use-module (gnu packages gettext)
+ #:use-module (gnu packages glib)
+ #:use-module (gnu packages gnome)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages maths)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -70,9 +75,41 @@
#:use-module (gnu packages qt)
#:use-module (gnu packages tls)
#:use-module (gnu packages valgrind)
+ #:use-module (gnu packages xml)
#:use-module (ice-9 match)
#:use-module ((srfi srfi-1) #:select (last)))
+(define-public xarchiver
+ (package
+ (name "xarchiver")
+ (version "0.5.4.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://github.com/ib/" name "/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0bqajl56z92a26b3is29a38fx777534gbvcn87ajh50aw63fsnrk"))))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ `(#:configure-flags
+ (list
+ "--disable-plugin"))) ; Not required
+ (native-inputs
+ `(("gettext" ,gettext-minimal)
+ ("intltool" ,intltool)
+ ("libxslt" ,libxslt)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("adwaita-icon-theme" ,adwaita-icon-theme) ; Hard-coded theme
+ ("gtk+" ,gtk+)))
+ (synopsis "Graphical Front-end for Archive Operations")
+ (description "Xarchiver is the ultimate solution for handling archives. It
+is a desktop-environment independent archiver front end.")
+ (home-page "https://github.com/ib/xarchiver")
+ (license license:gpl2+)))
+
(define-public zlib
(package
(name "zlib")
--
2.26.2