void-packages/srcpkgs/pkcs11-helper/template

44 lines
1.3 KiB
Bash

# Template file for 'pkcs11-helper'
pkgname=pkcs11-helper
version=1.29.0
revision=2
build_style=gnu-configure
configure_args="--enable-doc --disable-static $(vopt_enable threading slotevent) $(vopt_enable threading)"
hostmakedepends="libtool pkg-config doxygen"
makedepends="openssl-devel"
short_desc="Library to help simplify interacting with PKCS#11 providers"
maintainer="Aloz1 <kno0001@gmail.com>"
license="GPL-2.0-only, BSD-3-Clause"
homepage="https://github.com/OpenSC/pkcs11-helper"
changelog="https://raw.githubusercontent.com/OpenSC/pkcs11-helper/master/ChangeLog"
distfiles="https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-${version}/pkcs11-helper-${version}.tar.bz2"
checksum=996846a3c8395e03d8c0515111dc84d82e6e3648d44ba28cb2dbbbca2d4db7d6
build_options="threading"
build_options_default="threading"
desc_option_threading="Enable threading and slotevent support"
post_install() {
vlicense COPYING
vlicense COPYING.GPL
vlicense COPYING.BSD
}
pkcs11-helper-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
pkcs11-helper-doc_package() {
short_desc+=" - documentation files"
pkg_install() {
vmove usr/share/man
vmove usr/share/doc
}
}