# Template file for 'keepassxc'
pkgname=keepassxc
version=2.2.0
revision=1
build_style=cmake
configure_args="-DWITH_XC_HTTP=ON -DWITH_XC_YUBIKEY=ON -DWITH_XC_AUTOTYPE=ON -DWITH_TESTS=OFF"
makedepends="libXtst-devel libgcrypt-devel libykpers-devel libyubikey-devel qt5-tools-devel qt5-x11extras-devel"
short_desc="KeePassXC is a cross-platform port of “Keepass Password Safe”"
maintainer="ibrokemypie <ibrokemypie@bastardi.net>"
license="GPL-3, GPL-2, BSD-3-clause, LGPL-2, LGPL-2.1, LGPL-3+, Boost-1.0, CC-0"
homepage="https://keepassxc.org/"
distfiles="https://github.com/keepassxreboot/keepassxc/releases/download/${version}/keepassxc-${version}-src.tar.xz"
checksum=71c47ebd9a661fc439c61566e4a4aa482e4d463c0eaa4f7562e7216eb0327e59

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" qt5-host-tools qt5-devel qt5-qmake qt5-tools"
fi

post_install() {
	vlicense COPYING
	vlicense LICENSE.BOOST-1.0
	vlicense LICENSE.BSD
	vlicense LICENSE.CC0
	vlicense LICENSE.NOKIA-LGPL-EXCEPTION
	vlicense LICENSE.LGPL-3
	vlicense LICENSE.LGPL-2.1
	vlicense LICENSE.GPL-2
}
