pcsclite: switch to python 3

This commit is contained in:
Doan Tran Cong Danh 2019-12-26 20:52:45 +07:00 committed by Helmut Pozimski
parent fd9adfd49b
commit 483f5eddf8
2 changed files with 26 additions and 4 deletions

View file

@ -0,0 +1,22 @@
--- src/spy/pcsc-spy.orig 2019-12-26 20:48:20.222069705 +0700
+++ src/spy/pcsc-spy 2019-12-26 20:48:41.407288561 +0700
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!/usr/bin/python3
"""
# Display PC/SC functions arguments
@@ -22,12 +22,7 @@
import os
import signal
import time
-try:
- # for Python3
- from queue import Queue
-except ImportError:
- # for Python2
- from Queue import Queue
+from queue import Queue
from threading import Thread
from operator import attrgetter

View file

@ -1,13 +1,13 @@
# Template file for 'pcsclite'
pkgname=pcsclite
version=1.8.25
revision=1
revision=2
wrksrc="pcsc-lite-upstream-${version}"
build_style=gnu-configure
configure_args="--enable-libudev --disable-libsystemd"
hostmakedepends="intltool pkg-config python"
makedepends="eudev-libudev-devel libusb-devel python-devel"
depends="python"
hostmakedepends="intltool pkg-config python3"
makedepends="eudev-libudev-devel libusb-devel python3-devel"
depends="python3"
short_desc="Middleware to access a smart card using SCard API (PC/SC)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"