74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
# Template file for 'yubico-piv-tool'
|
|
_libpiv_name="libykpiv"
|
|
_libpiv_desc="Yubikey PIV management library"
|
|
_libykcs_name="libykcs11"
|
|
_libykcs_desc="Yubikey PIV pkcs11 library"
|
|
|
|
pkgname=yubico-piv-tool
|
|
version=2.1.1
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="automake libtool gengetopt pkg-config help2man 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/yubico-piv-tool"
|
|
distfiles="https://developers.yubico.com/yubico-piv-tool/Releases/$pkgname-${version}.tar.gz"
|
|
checksum=733aee13c22bb86a2d31f59c2f4c1f446f0bca2791f866de46bf71ddd7ebc1b3
|
|
replaces="ykpivmgr>=0"
|
|
provides="ykpivmgr-${version}_${revision}"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" yubico-piv-tool"
|
|
configure_args="-DHELP2MAN_LOCATION=/usr/bin/true"
|
|
fi
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vman /usr/share/man/man1/yubico-piv-tool.1
|
|
fi
|
|
}
|
|
|
|
libykpiv_package() {
|
|
short_desc="${_libpiv_desc}"
|
|
pkg_install() {
|
|
vmove "usr/lib/${_libpiv_name}.so.*"
|
|
vlicense COPYING
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
|
|
ykpivmgr_package() {
|
|
short_desc+=" - transitional package"
|
|
depends="$sourcepkg"
|
|
build_style=meta
|
|
}
|