From 0b51ee66b74631cd26087e605476fc1621820ee4 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 11 Dec 2025 12:03:45 +0100 Subject: [PATCH] gnu: ccid: Update to 1.7.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/security-token.scm (ccid): Update to 1.7.0. [source]: Switch to git-fetch. [arguments]<#:phases>: Fix ’patch-Makefile. [inputs]: Add zlib. [native-inputs]: Add autoconf, autoconf-archive, automake, flex, libtool, python-wrapper, and which. Change-Id: Id546490684e7b54ac4858ec9b89809c825c361fe --- gnu/packages/security-token.scm | 45 ++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 50c708834f2c3a7044dbb16dd51210e5a5257320..eed07e95f351b3a3a9e083eb86860954b8966718 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; Copyright © 2025 Robin Templeton ;;; Copyright © 2025 Laura Kirsch +;;; Copyright © 2025 Cayetano Santos ;;; ;;; This file is part of GNU Guix. ;;; @@ -102,14 +103,16 @@ (define-public ccid (package (name "ccid") - (version "1.5.2") - (source (origin - (method url-fetch) - (uri (string-append "https://ccid.apdu.fr/files/ccid-" - version ".tar.bz2")) - (sha256 - (base32 - "06bjdswbwcwndsn23rsdhz5a7xqsgb66glqnk9lqzd7qws3l94qk")))) + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/rousseau/CCID") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j3xw2s44dpphdyy5bnf33s4b2y25p8igdc7lidmsrhh4afv7rp9")))) (build-system gnu-build-system) (arguments (list @@ -117,17 +120,25 @@ #~(list (string-append "--enable-usbdropdir=" #$output "/pcsc/drivers")) - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'patch-Makefile - (lambda _ - (substitute* "src/Makefile.in" - (("/bin/echo") (which "echo"))) - #t))))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-Makefile + (lambda _ + (substitute* "src/Makefile.am" + (("/bin/echo") (which "echo")))))))) (native-inputs - (list perl pkg-config)) + (list autoconf + autoconf-archive + automake + flex + libtool + perl + pkg-config + python-wrapper + which + pkg-config)) (inputs - (list libusb pcsc-lite)) + (list libusb pcsc-lite zlib)) (home-page "https://ccid.apdu.fr/") (synopsis "PC/SC driver for USB smart card devices") (description