gnu: Add pqiv.

* gnu/packages/image-viewers.scm (pqiv): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
dissent 2021-12-05 12:27:02 +01:00 committed by Nicolas Goaziou
parent 66a2d3830c
commit c663d037aa
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -21,6 +21,7 @@
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 dissent <disseminatedissent@protonmail.com>
;;;
;;; 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")