void-packages/srcpkgs/ykpers-gui/template
yopito e1d4b03994 ykpers-gui: update to 3.1.25
Closes: #11058 [via git-merge-pr]
2018-01-31 12:08:57 +01:00

28 lines
1.1 KiB
Bash

# Template file for 'ykpers-gui'
_realname="yubikey-personalization-gui"
pkgname=ykpers-gui
version=3.1.25
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=680b8ba8251c828847ffddd520165ac14927c2c6ee4ae39cfa9022ad7dd9dece
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
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
}