From c663d037aa3f410706e110ce30b3e07c3edc2870 Mon Sep 17 00:00:00 2001 From: dissent Date: Sun, 5 Dec 2021 12:27:02 +0100 Subject: gnu: Add pqiv. * gnu/packages/image-viewers.scm (pqiv): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/image-viewers.scm | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 7520d0731a..291dcd383d 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2021 dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,6 +50,7 @@ (define-module (gnu packages image-viewers) #:use-module (guix build-system python) #:use-module (gnu packages autotools) #:use-module (gnu packages algebra) + #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages boost) @@ -72,6 +74,7 @@ (define-module (gnu packages image-viewers) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages ncurses) + #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages photo) @@ -924,6 +927,49 @@ (define-public qiv to set X desktop background.") (license license:gpl2))) +(define-public pqiv + (package + (name "pqiv") + (version "2.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/phillipberndt/pqiv") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18nvrqmlifh4m8nfs0d19sb9d1l3a95xc89qxqdr881jcxdsgflw")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("ffmpeg" ,ffmpeg) + ("gtk+" ,gtk+) + ("imagemagick" ,imagemagick) + ("libarchive" ,libarchive) + ("libspectre" ,libspectre) + ("libwebp" ,libwebp) + ("poppler" ,poppler))) + (arguments + `(#:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (delete 'configure)) ;no configure script + #:make-flags + (list + (string-append "PREFIX=" (assoc-ref %outputs "out")) + (string-append "CC=" ,(cc-for-target)) + (string-append "PKG_CONFIG=" ,(pkg-config-for-target))))) + (home-page "https://www.pberndt.com/Programme/Linux/pqiv") + (synopsis "Powerful image viewer with minimal UI") + (description + "pqiv is a GTK-3 based command-line image viewer with a minimal UI. +It is highly customizable, can be fully controlled from scripts, and has +support for various file formats including PDF, Postscript, video files and +archives.") + (license license:gpl3+))) + (define-public nomacs (package (name "nomacs") -- cgit v1.2.3