New packages: libyubikey, ykpers, ykpers-gui.

This commit is contained in:
yopito 2015-12-06 19:30:05 +01:00
parent 6f9a13c277
commit 85bcde8a7e
9 changed files with 112 additions and 0 deletions

View File

@ -2286,3 +2286,5 @@ libgconfmm-2.6.so.1 gconfmm-2.28.3_1
libiperf.so.0 iperf3-3.1.1_1
libkqueue.so.0 libkqueue-2.0.3_1
libfdk-aac.so.1 fdk-aac-0.1.4_1
libyubikey.so.0 libyubikey-1.13_1
libykpers-1.so.1 libykpers-1.17.2_1

1
srcpkgs/libykpers Symbolic link
View File

@ -0,0 +1 @@
ykpers

1
srcpkgs/libykpers-devel Symbolic link
View File

@ -0,0 +1 @@
ykpers

1
srcpkgs/libyubikey-devel Symbolic link
View File

@ -0,0 +1 @@
libyubikey

1
srcpkgs/libyubikey-utils Symbolic link
View File

@ -0,0 +1 @@
libyubikey

View File

@ -0,0 +1,38 @@
# Template file for 'libyubikey'
pkgname=libyubikey
version=1.13
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-silent-rules"
hostmakedepends="automake libtool"
short_desc="Yubico YubiKey authentication device C SDK"
maintainer="yopito <pierre.bourgin@free.fr>"
license="BSD"
homepage="https://developers.yubico.com/yubico-c"
distfiles="https://developers.yubico.com/yubico-c/releases/${pkgname}-${version}.tar.gz"
checksum=04edd0eb09cb665a05d808c58e1985f25bb7c5254d2849f36a0658ffc51c3401
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING LICENSE
}
libyubikey-utils_package() {
short_desc+=" - utilities"
pkg_install() {
vdoc README
vmove usr/bin
vmove usr/share/man
}
}
libyubikey-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}

View File

@ -0,0 +1,24 @@
# Template file for 'ykpers-gui'
_realname="yubikey-personalization-gui"
pkgname=ykpers-gui
version=3.1.23
revision=1
wrksrc="${_realname}-${version}"
build_style=qmake
hostmakedepends="qt5-qmake pkg-config"
makedepends="qt5-devel libusb-compat-devel libyubikey-devel libykpers-devel"
depends="hicolor-icon-theme"
short_desc="Yubikey Personalization Tools GUI"
maintainer="yopito <pierre.bourgin@free.fr>"
license="BSD"
homepage="https://developers.yubico.com/${_realname}/"
distfiles="https://developers.yubico.com/${_realname}/Releases/${_realname}-${version}.tar.gz"
checksum=80747cca7c77c384f175b92ea360955c034dcff8f7552dae080ad2b70ff81897
post_install() {
vlicense COPYING LICENSE
vbin build/release/${_realname} ykpers-gui
vinstall resources/lin/${_realname}.png 644 usr/share/icons/hicolor/48x48/apps ykpers-gui.png
vinstall resources/lin/${_realname}.desktop 644 usr/share/applications ykpers-gui.desktop
sed -i -e 's,^\(Exec\|Icon\)=.*,\1=ykpers-gui,' ${DESTDIR}/usr/share/applications/ykpers-gui.desktop
}

View File

@ -0,0 +1 @@
pkgname=yubikey-personalization-gui

43
srcpkgs/ykpers/template Normal file
View File

@ -0,0 +1,43 @@
# Template file for 'ykpers'
pkgname=ykpers
version=1.17.2
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"
checksum=704a12410da22f37d69fd337511e74b61f876f841d52f13e87971c0adb5ddefc
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
}
}