2024-05-04 19:08:55 +02:00
|
|
|
# Description: Middleware to access a smart card using SCard API (PC/SC)
|
|
|
|
# URL: https://pcsclite.apdu.fr
|
2022-03-22 20:10:37 +01:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-11-25 22:59:07 +01:00
|
|
|
# Depends on: polkit
|
2022-03-22 20:10:37 +01:00
|
|
|
|
|
|
|
name=pcsclite
|
2024-05-04 19:08:55 +02:00
|
|
|
version=2.2.0
|
2022-03-22 20:10:37 +01:00
|
|
|
release=1
|
2024-05-04 19:08:55 +02:00
|
|
|
source=(https://pcsclite.apdu.fr/files/pcsc-lite-$version.tar.xz
|
|
|
|
960e367edc01518b90684ffff99010ee07ae1bd4.patch)
|
2022-03-22 20:10:37 +01:00
|
|
|
|
|
|
|
build() {
|
2024-05-04 19:08:55 +02:00
|
|
|
patch -Np1 -d pcsc-lite-$version -i $SRC/960e367edc01518b90684ffff99010ee07ae1bd4.patch
|
2022-03-22 20:10:37 +01:00
|
|
|
|
2024-05-04 19:08:55 +02:00
|
|
|
meson setup pcsc-lite-$version build \
|
2022-03-22 20:10:37 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2024-05-04 19:08:55 +02:00
|
|
|
--sbindir=/usr/sbin/ \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
|
|
|
-D libudev=true \
|
|
|
|
-D usb=true \
|
|
|
|
-D usbdropdir=/usr/lib/pcsc/drivers \
|
|
|
|
-D libsystemd=false
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2022-03-22 20:10:37 +01:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
install -d $PKG/usr/lib/pcsc/drivers
|
|
|
|
}
|