40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'ykpers'
|
|
pkgname=ykpers
|
|
version=1.19.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-rpath --with-backend=libusb"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libusb-compat-devel libyubikey-devel"
|
|
short_desc="Yubikey Personalization Tools cmdline"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://developers.yubico.com/yubikey-personalization/"
|
|
distfiles="https://developers.yubico.com/yubikey-personalization/releases/${pkgname}-${version}.tar.gz"
|
|
checksum=d9513ec7576bea36be37e3fb87a51d4522a28b6b0611ce64ad9fdf2cb7b21b4a
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
vdoc README
|
|
vinstall 69-yubikey.rules 644 usr/lib/udev/rules.d/
|
|
vinstall 70-yubikey.rules 644 usr/lib/udev/rules.d/
|
|
}
|
|
|
|
libykpers_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libykpers-${version%.*.*}.so.*"
|
|
}
|
|
}
|
|
|
|
libykpers-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove /usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|