void-packages/srcpkgs/ykpers/template

44 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'ykpers'
pkgname=ykpers
2016-01-25 11:55:31 +01:00
version=1.17.3
revision=1
build_style=gnu-configure
configure_args="--enable-static=no --disable-rpath --with-backend=libusb"
hostmakedepends="automake pkg-config libtool json-c-devel"
makedepends="libusb-compat-devel libyubikey-devel"
short_desc="Yubikey Personalization Tools cmdline"
maintainer="yopito <pierre.bourgin@free.fr>"
license="BSD"
homepage="https://developers.yubico.com/yubikey-personalization/"
distfiles="https://developers.yubico.com/yubikey-personalization/releases/${pkgname}-${version}.tar.gz"
2016-01-25 11:55:31 +01:00
checksum=482fc3984fc659c801cfc51313268f248507094ed5224f4394cfd66e23af9c0c
pre_configure() {
autoreconf -fi
}
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
}
}