[PATCH] gnu: package pngquant and libimagequant

DoneSubmitted by Arne Babenhauserheide.
Details
2 participants
  • Arne Babenhauserheide
  • Ludovic Courtès
Owner
unassigned
Severity
normal
A
A
Arne Babenhauserheide wrote on 12 Jul 2019 23:38
(address . guix-patches@gnu.org)(name . Arne Babenhauserheide)(address . arne_bab@web.de)
20190712213839.23635-1-arne_bab@web.de
* gnu/packages/image.scm (pngquant): Package 2.12.3* gnu/packages/image.scm (libimagequant): Package 2.12.3--- gnu/packages/image.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
Toggle diff (76 lines)diff --git a/gnu/packages/image.scm b/gnu/packages/image.scmindex fabc2fb2d1..511f5302b7 100644--- a/gnu/packages/image.scm+++ b/gnu/packages/image.scm@@ -258,6 +258,71 @@ files. It can compress them as much as 40% losslessly.") ;; This package used to be wrongfully name "pngcrunch". (deprecated-package "pngcrunch" pngcrush))
+(define-public pngquant+ (package+ (name "pngquant")+ (version "2.12.3")+ (source (origin+ (method url-fetch)+ (uri (string-append+ "http://pngquant.org/pngquant-"+ version ".tar.gz"))+ (file-name (string-append name "-" version ".tar.gz"))+ (sha256+ (base32+ "1mr0c7cd6m5hwz2fgbgmphirpf5mm4q546cpc31nwsrj4390qz2h"))))+ (build-system gnu-build-system)+ (arguments+ '(#:tests? #f ; no check target+ #:phases (modify-phases %standard-phases+ (replace 'build+ (lambda _+ (invoke "make"+ (string-append+ "LIQSRCDIR="+ (assoc-ref %build-inputs "libimagequant")+ "/lib")+ "pngquant"))))))+ (inputs+ `(("libpng" ,libpng)+ ("zlib" ,zlib)+ ("libimagequant" ,libimagequant)))+ (native-inputs+ `(("pkg-config" ,pkg-config)))+ (home-page "https://pngquant.org")+ (synopsis "Lossy png compression")+ (description "pngquant is a command-line utility for lossy compression of+PNG images.")+ (license license:gpl3+)))+++(define-public libimagequant+ (package+ (name "libimagequant")+ (version "2.12.3")+ (source (origin+ (method url-fetch)+ (uri (string-append+ "https://github.com/ImageOptim/libimagequant/archive/"+ version ".tar.gz"))+ (file-name (string-append name "-" version ".tar.gz"))+ (sha256+ (base32+ "0ggiizj6vz2i1r5ff1hgjl1v0hx8227wdgwxrlb29rd7ax38bmrb"))))+ (build-system gnu-build-system)+ (native-inputs+ `(("pkg-config" ,pkg-config)))+ (arguments+ '(#:tests? #f ; no check target+ #:phases (modify-phases %standard-phases+ (replace 'build+ (lambda _ (invoke "make" "libimagequant.so"))))))+ (home-page "https://pngquant.org/lib/")+ (synopsis "Utility to compress PNG files")+ (description "libimagequant is a library for lossy compression of PNG images.")+ (license license:gpl3+)))++ (define-public pnglite (let ((commit "11695c56f7d7db806920bd9229b69f230e6ffb38") (revision "1"))
--2.22.0
L
L
Ludovic Courtès wrote on 15 Jul 2019 12:43
(name . Arne Babenhauserheide)(address . arne_bab@web.de)
874l3nr31f.fsf@gnu.org
Hello,
Arne Babenhauserheide <arne_bab@web.de> skribis:
Toggle quote (3 lines)> * gnu/packages/image.scm (pngquant): Package 2.12.3> * gnu/packages/image.scm (libimagequant): Package 2.12.3
Hartmut contributed the same packages just a few days ago. Please letus know if you think something’s missing from the existing packages,otherwise case closed!
Thanks,Ludo’.
Closed
A
A
Arne Babenhauserheide wrote on 15 Jul 2019 13:16
(name . Ludovic Courtès)(address . ludo@gnu.org)
874l3nv988.fsf@web.de
Ludovic Courtès <ludo@gnu.org> writes:
Toggle quote (11 lines)> Hello,>> Arne Babenhauserheide <arne_bab@web.de> skribis:>>> * gnu/packages/image.scm (pngquant): Package 2.12.3>> * gnu/packages/image.scm (libimagequant): Package 2.12.3>> Hartmut contributed the same packages just a few days ago. Please let> us know if you think something’s missing from the existing packages,> otherwise case closed!
The contribution from Hartmut looks good to me. Case closed :-)
Best wishes,Arne-- Unpolitisch seinheißt politisch seinohne es zu merken
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE801qEjXQSQPNItXAE++NRSQDw+sFAl0sYIkACgkQE++NRSQDw+s79RAAstQyQTiy7iHXVkApuwhYVv4CnZgBTM6/JmBiHQAe2Ek1YTvPGjqXjXH5/MtK97lCTIVU3mpMLNEnjLkns5xhhiIM1p8z3TbcGFfIbklCC8fB6jqpfObBN29kNPo9acwdUk2K5IGjnRIXFIkKyE/xgGuOGRAAlqmxObycxo6iAdjAoqLXdDwI155ULk/fYMdx43VsRPPaWq0ToCFqD1gqiKActu9hndHoCXgFhL/c4xhKHCmAcBatpNCJ1jlxcX/oDXcSss2zUN8l+e7rwQfjtpBo4hNqAIkiyuUu5ArpO8/GzvUYYodNEx7OTq1Qc2klN//Zw8AIp/ZHMdil9a+uIH7vJX4NTQhg1qY1/olk9QUiZzIjAgzbN9R5KW45jSMHA/ofCaemWal2KrfWPRgPxB3e00fP6sQMI9upoPLO9N9YVF9V3IhNxr8VK/hZv639qE9iLLHwvgP9DzeM4Y76ueAypdyo5M1rs/cDLus9pdyZsiuOYahxRWiNZAGOmDrVFfPv7473iGQ/Br72O8hMhWZVbcIiGSidPxuO/BRQfE4XjHJrwDeRiO8/co9YbM4nQrYO4Nnx/iIZe3/q8Eje6QBdRnWLCbCPQi7O85X5pVp9eCZDA2VnfIxxmy2gNYs/hkAgmZDi32W6ad/BwEIXxbDgUoBSwBnnZmKlO6NuGbyIswQBAQgAHRYhBN0ovebZh1yrzkqLHdzPDbMLwQVIBQJdLGCKAAoJENzPDbMLwQVIJYAD/AuewuVWIxUWTI4JhrKXZZ47b/FEk6K3TS6Uott8Ky8gsvknhfNQfcS7noKSuVBKPA7E0IZ8DwbcI314WDTUkcrbwpHf1A2JCXajIOYfucPW5lnUEzBoemlIxA27VcyIf9gtXkTyzsrmVZ3JHU9iyMGxOjSJOBK6rEdz9QF+xeZ6=lCqs-----END PGP SIGNATURE-----
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 36627@debbugs.gnu.org