void-packages/srcpkgs/opensc/template

38 lines
1.0 KiB
Bash

# Template file for 'opensc'
pkgname=opensc
version=0.16.0
revision=2
build_style=gnu-configure
configure_args="--enable-man --enable-sm --enable-static=no --enable-doc
--with-xsl-stylesheetsdir=/usr/share/xsl/docbook"
hostmakedepends="automake libtool pkg-config docbook-xsl libxslt"
makedepends="readline-devel pcsclite-devel libressl-devel zlib-devel"
conf_files="/etc/opensc.conf"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/OpenSC/OpenSC/wiki"
license="LGPL-2.1"
short_desc="Tools and libraries for smart cards"
distfiles="https://github.com/OpenSC/OpenSC/archive/${version}.tar.gz"
checksum=4969627f0eab48bef6a5d9e162facc3a49ba8e675fadb8a9a446391fcfa19bc6
wrksrc="OpenSC-$version"
pre_configure() {
autoreconf -fi
}
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"
pkg_install() {
vmove "usr/lib/libopensc.so*"
vmove "usr/lib/libsmm-local.so*"
}
}