# Template file for 'qtpass'
pkgname=qtpass
version=0.8.5.1
revision=1
build_style=gnu-makefile
hostmakedepends="qt5-qmake"
makedepends="qt5-devel"
depends="pass"
short_desc="Multi-platform GUI for pass"
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
license="GPL-3"
homepage="http://qtpass.org/"
distfiles="https://github.com/IJHack/${pkgname}/archive/v${version}.tar.gz"
checksum=174a129401d99347a1ec510fd61841e49e867a5f90b2deb6d4716f4838245eab

do_configure() {
	qmake
}

do_install() {
	vbin qtpass

	vinstall artwork/icon.png 644 \
		usr/share/icons/hicolor/512x512/apps qtpass-icon.png
	vinstall artwork/icon.svg 644 \
		usr/share/icons/hicolor/scalable/apps qtpass-icon.svg

	vinstall qtpass.desktop 644 usr/share/applications
}
