void-packages/srcpkgs/pcsc-ccid/template

44 lines
1.3 KiB
Bash

# Template file for 'pcsc-ccid'
pkgname=pcsc-ccid
version=1.6.1
revision=1
build_style=meson
configure_args="-Dserial=true"
hostmakedepends="pkg-config perl flex"
makedepends="zlib-devel pcsclite-devel eudev-libudev-devel libusb-compat-devel"
short_desc="PC/SC driver to support CCID compliant readers"
maintainer="Jose G Perez Taveras <josegpt27@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://ccid.apdu.fr/"
changelog="https://salsa.debian.org/rousseau/CCID/-/raw/master/README.md"
distfiles="https://ccid.apdu.fr/files/ccid-${version}.tar.xz"
checksum=2eca8fb07e8fe7c0d39daeaca7b97cd73c40ed9b72738a24ad3dcbdfc918e1ea
post_install() {
vinstall src/92_pcscd_ccid.rules 644 usr/lib/udev/rules.d/
vdoc readers/supported_readers.txt
vdoc README.md
}
pcsc-ccid-contrib_package() {
short_desc+=" - contributions"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin build/Kobil_mIDentity_switch
vman contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8
vbin build/RSA_SecurID_getpasswd
vman contrib/RSA_SecurID/RSA_SecurID_getpasswd.1
}
}
pcsc-ccid-examples_package() {
short_desc+=" - examples"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmkdir usr/libexec/${sourcepkg}/examples
for f in $(find ${wrksrc}/examples -maxdepth 1 -type f); do
vcopy $f usr/libexec/${sourcepkg}/examples
done
}
}