void-packages/srcpkgs/ykpers-gui/template

25 lines
1022 B
Bash
Raw Normal View History

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