void-packages/srcpkgs/opensc/template

53 lines
1.5 KiB
Bash

# Template file for 'opensc'
pkgname=opensc
version=0.23.0
revision=1
build_style=gnu-configure
configure_args="--enable-static=no --enable-doc --enable-man
--with-xsl-stylesheetsdir=/usr/share/xsl/docbook
--with-completiondir=/usr/share/bash-completion/completions"
hostmakedepends="automake docbook-xsl libtool libxslt pkg-config"
makedepends="openssl-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=a08b475834e3c3b0efd9bfc46adfcc3440d3975c2fb3ab2ef29342b879d41370
conf_files="/etc/opensc.conf"
pre_configure() {
autoreconf -fi
}
post_install() {
# we don't build npa-tool (missing OpenPACE)
rm ${DESTDIR}/usr/share/man/man1/npa-tool.1
# we don't build opensc-notify
rm ${DESTDIR}/usr/share/applications/org.opensc.notify.desktop
rm ${DESTDIR}/usr/share/bash-completion/completions/opensc-notify
}
opensc-pkcs11_package() {
short_desc+=" - pkcs11 library"
pkg_install() {
vmove usr/lib/opensc-pkcs11.so
vmove usr/lib/onepin-opensc-pkcs11.so
vmove usr/lib/pkcs11-spy.so
vmove usr/lib/pkcs11
vmove usr/lib/pkgconfig/opensc-pkcs11.pc
}
}
libopensc_package() {
short_desc+=" - library files"
depends="libpcsclite" # dlopen()
pkg_install() {
vmove "usr/lib/libopensc.so*"
vmove "usr/lib/libsmm-local.so*"
}
}