[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ESC/P-R package
From: |
Diego Nicola Barbato |
Subject: |
ESC/P-R package |
Date: |
Sun, 29 Oct 2017 00:32:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
I would like to create a package for the ESC/P-R printer driver. The
recipe works on my machine (GuixSD on x86_64). Yet I am not sure about
the source URL as it appears to break as soon as a new version is made
available because the old link is not preserved. Should we get the
source from
http://http.debian.net/debian/pool/main/e/epson-inkjet-printer-escpr/
instead, even though it is an older version?
Greetings
Diego
diff -u ~/Programs/Guix/cups.scm.old ~/Programs/Guix/cups.scm
--- ~/Programs/Guix/cups.scm.old 2017-10-28 23:26:11.356064722 +0200
+++ ~/Programs/Guix/cups.scm 2017-10-29 00:03:38.820338060 +0200
@@ -599,3 +599,30 @@
protocols, which cover printers made by Konica, HP (LaserJet), Oki, Samsung,
and more. See @file{README} for details.")
(license license:gpl2+)))
+
+(define-public escpr
+ (package
+ (name "escpr")
+ (version "1.6.17")
+ ;; This currently works. But it will break as soon as a newer
+ ;; version is available since the URLs for older versions are not
+ ;; preserved. An alternative would be to download the source (for
+ ;; an older version) from this Debian repository:
+ ;; http://http.debian.net/debian/pool/main/e/epson-inkjet-printer-escpr/
+ (source (origin
+ (method url-fetch)
+ (uri
"https://download3.ebz.epson.net/dsc/f/03/00/06/66/09/4ac2bf69bb1ddf4a9ad525596615cbb40fe4dad5/epson-inkjet-printer-escpr-1.6.17-1lsb3.2.tar.gz")
+ (sha256
+ (base32
+ "0m6v1wdavw4r25jfywqchsx0v9ss1l5fr8vq9d0d8cmjnz8mqblv"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags
+ `(,(string-append "--prefix=" (assoc-ref %outputs "out"))
+ ,(string-append "--with-cupsfilterdir=" (assoc-ref %outputs "out")
"/lib/cups/filter")
+ ,(string-append "--with-cupsppddir=" (assoc-ref %outputs "out")
"/share/ppd"))))
+ (inputs `(("cups" ,cups-minimal)))
+ (synopsis "ESC/P-R printer driver")
+ (description "ESC/P-R driver supporting a multitude of Epson printers.")
+ (home-page "http://download.ebz.epson.net/dsc/search/01/search")
+ (license license:gpl2+)))
Diff finished. Sun Oct 29 00:04:01 2017
- ESC/P-R package,
Diego Nicola Barbato <=