diff mbox

[1/2] gnu: Add libpcsclite

Message ID 1b859b2decdf672dcae1f2db40ef3fb87ccdf75c.1477153372.git.mtg@gnu.org
State New
Headers show

Commit Message

Mike Gerwitz Oct. 22, 2016, 4:24 p.m. UTC
* gnu/packages/gnupg.scm (libpcsclite): New variable.
---
 gnu/packages/gnupg.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 5fcc03a..c4920b0 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -30,8 +30,10 @@ 
   #:use-module (gnu packages)
   #:use-module (gnu packages adns)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages openldap)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pth)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
@@ -73,6 +75,36 @@  Daemon and possibly more in the future.")
     (properties '((ftp-server . "ftp.gnupg.org")
                   (ftp-directory . "/gcrypt/libgpg-error")))))
 
+(define-public libpcsclite
+  (package
+    (name "libpcsclite")
+    (version "1.8.18")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://alioth.debian.org/frs/download.php/file/4179/"
+                    "pcsc-lite-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0189s10xsgcmdvc2sixakncwlv47cg6by6m9vdm038gn32q34bdj"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("perl" ,perl)                   ; for pod2man
+       ("pkg-config" ,pkg-config)))
+    (propagated-inputs
+     `(("libudev" ,eudev)))
+    (home-page "https://pcsclite.alioth.debian.org/pcsclite.html")
+    (synopsis "Middleware to access a smart card using PC/SC")
+    (description
+     "The purpose of PC/SC Lite is to provide a Windows(R) SCard interface in
+a very small form factor for communicating to smartcards and readers.  The
+PC/SC Lite library is used to connect to the PC/SC daemon from a client
+application and provide access to the desired reader.")
+    (license (list license:bsd-3                ; libpcsclite
+                   license:expat                ; src/sd-daemon.[ch]
+                   license:isc                  ; src/strlcat.c src/strlcpy.c
+                   license:gpl3+))))            ; src/spy/*
+
 (define-public libgcrypt
   (package
     (name "libgcrypt")