void-packages/srcpkgs/ykpivmgr/template
2018-04-26 20:43:25 +02:00

68 lines
1.7 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.5.0
revision=3
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"
homepage="https://developers.yubico.com/${_real_name}"
distfiles="https://developers.yubico.com/${_real_name}/Releases/${_real_name}-${version}.tar.gz"
checksum=c18375179ba25bf9d61365b3903f033f112897bbd54ca63c62fa153f2d05aaab
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"
}
}