64 lines
1.7 KiB
Bash
64 lines
1.7 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.3.0
|
|
revision=3
|
|
build_style=cmake
|
|
configure_args="-DGENERATE_MAN_PAGES=OFF"
|
|
hostmakedepends="automake libtool gengetopt pkg-config perl"
|
|
makedepends="openssl-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=a02a12d9545d1ef7a1b998606d89b7b655a5f5a1437736cf51db083f876f55a9
|
|
replaces="ykpivmgr>=0"
|
|
provides="ykpivmgr-${version}_${revision}"
|
|
|
|
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
|
|
}
|