void-packages/srcpkgs/ykpers-gui/template

29 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
}