void-packages/srcpkgs/pcsc-ccid/template
2017-01-09 01:07:02 +01:00

47 lines
1.5 KiB
Bash

# Template file for 'pcsc-ccid'
# Note: when updating the version, the 4 digit number
# in distfiles also changes. You will have to look at
# the download page and find it in the download link.
pkgname=pcsc-ccid
version=1.4.26
revision=1
wrksrc=ccid-${version}
build_style=gnu-configure
configure_args="--enable-udev"
hostmakedepends="pkg-config perl"
makedepends="pcsclite-devel eudev-libudev-devel libusb-compat-devel"
short_desc="PC/SC driver to support CCID compliant readers"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2.1"
homepage="http://pcsclite.alioth.debian.org/ccid.html"
distfiles="https://alioth.debian.org/frs/download.php/file/4205/ccid-${version}.tar.bz2"
checksum=3267bf708ab780c02f01f6241b7c7277cb892d30fd1179a9926a8cc0ca40be2f
post_install() {
vinstall src/92_pcscd_ccid.rules 644 usr/lib/udev/rules.d/
vdoc readers/supported_readers.txt
vdoc README
}
pcsc-ccid-contrib_package() {
short_desc+=" - contributions"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch
vman contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8
vbin contrib/RSA_SecurID/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/share/${sourcepkg}/examples
rm examples/*.o
for f in $(find ${wrksrc}/examples -maxdepth 1 -type f); do
vcopy $f usr/share/${sourcepkg}/examples
done
}
}