void-packages/srcpkgs/ykpers-gui/template
2016-01-25 11:55:59 +01:00

24 lines
1,022 B
Bash

# Template file for 'ykpers-gui'
_realname="yubikey-personalization-gui"
pkgname=ykpers-gui
version=3.1.24
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=98295f7ed7bda72e6f8f96351d69d41d55c09d9515f80b5efc7c722dd566482a
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
}