void-packages/srcpkgs/ykpivmgr/template

69 lines
1.8 KiB
Bash

# Template file for 'ykpivmgr'
_real_name="yubico-piv-tool"
_libpiv_name="libykpiv"
_libpiv_desc="Yubikey PIV management library"
_libykcs_name="libykcs11"
_libykcs_desc="Yubikey PIV pkcs11 library"
pkgname=ykpivmgr
version=1.7.0
revision=2
wrksrc="${_real_name}-${version}"
build_style=gnu-configure
configure_args="--enable-doxygen-man --program-transform-name='s/^yubico-piv-tool$/ykpivmgr/'"
hostmakedepends="automake libtool gengetopt pkg-config doxygen perl"
makedepends="libressl-devel check-devel pcsclite-devel"
short_desc="Yubikey PIV management tool"
maintainer="Aloz1 <kno0001@gmail.com>"
license="BSD-2-Clause"
homepage="https://developers.yubico.com/${_real_name}"
distfiles="https://developers.yubico.com/${_real_name}/Releases/${_real_name}-${version}.tar.gz"
checksum=b428527e4031453a637128077983e782e9fea25df98e95e0fc27819b2e82fd7f
patch_args="-Np1"
post_extract() {
sed -i '/^yubico-piv-tool.1/,$d' tool/Makefile.am
}
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING
}
libykpiv_package() {
short_desc="${_libpiv_desc}"
pkg_install() {
vmove "usr/lib/${_libpiv_name}.so.*"
}
}
libykpiv-devel_package() {
short_desc="${_libpiv_desc} - Development files"
depends="${_libpiv_name}>=${version}_${revision}"
pkg_install() {
vmove "usr/include"
vmove "usr/lib/${_libpiv_name}.so"
vmove "usr/lib/${_libpiv_name}.a"
vmove "usr/lib/pkgconfig/ykpiv.pc"
}
}
libykcs11_package() {
short_desc="${_libykcs_desc}"
pkg_install() {
vmove "usr/lib/${_libykcs_name}.so.*"
}
}
libykcs11-devel_package() {
short_desc="${_libykcs_desc} - Development files"
depends="${_libykcs_name}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/${_libykcs_name}.a"
vmove "usr/lib/${_libykcs_name}.so"
vmove "usr/lib/pkgconfig/ykcs11.pc"
}
}