void-packages/srcpkgs/opensc/template
Érico Rolim 1f63790fcb opensc: update to 0.21.0.
Fixes multiple CVEs.
2020-12-11 00:23:29 -03:00

45 lines
1.3 KiB
Bash

# Template file for 'opensc'
pkgname=opensc
version=0.21.0
revision=1
wrksrc="OpenSC-${version}"
build_style=gnu-configure
configure_args="--enable-man --enable-sm --enable-static=no --enable-doc
--with-xsl-stylesheetsdir=/usr/share/xsl/docbook"
hostmakedepends="automake docbook-xsl libtool libxslt pkg-config"
makedepends="libressl-devel pcsclite-devel readline-devel zlib-devel"
short_desc="Tools and libraries for smart cards"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/OpenSC/OpenSC/wiki"
distfiles="https://github.com/OpenSC/OpenSC/archive/${version}.tar.gz"
checksum=d4ee136d1b3a764868433da01857da7347de240e0c82545faa8659c2384ee43d
conf_files="/etc/opensc.conf"
CFLAGS="-Wno-error=format-overflow"
pre_configure() {
autoreconf -fi
}
post_install() {
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions
}
opensc-pkcs11_package() {
short_desc+=" - pkcs11 library"
pkg_install() {
vmove usr/lib/pkcs11
vmove "usr/lib/opensc-pkcs11*"
vmove usr/lib/pkcs11-spy.so
}
}
libopensc_package() {
short_desc+=" - library files"
depends="libpcsclite" # dlopen()
pkg_install() {
vmove "usr/lib/libopensc.so*"
vmove "usr/lib/libsmm-local.so*"
}
}