vp-build/srcpkgs/keepassxc/template

46 lines
1.7 KiB
Bash

# Template file for 'keepassxc'
pkgname=keepassxc
version=2.3.4
revision=1
build_style=cmake
configure_args="-DWITH_TESTS=OFF
-DWITH_XC_AUTOTYPE=$(vopt_if autotype ON OFF)
-DWITH_XC_NETWORKING=$(vopt_if network ON OFF)
-DWITH_XC_YUBIKEY=$(vopt_if yubikey ON OFF)
-DWITH_XC_BROWSER=$(vopt_if browser ON OFF)
-DWITH_XC_SSHAGENT=$(vopt_if sshagent ON OFF)"
makedepends="qt5-tools-devel libgcrypt-devel libargon2-devel
$(vopt_if autotype 'qt5-x11extras-devel libXtst-devel libXi-devel')
$(vopt_if browser libsodium-devel)
$(vopt_if network libcurl-devel)
$(vopt_if yubikey 'libykpers-devel libyubikey-devel')"
short_desc="KeePassXC is a cross-platform port of “Keepass Password Safe”"
maintainer="ibrokemypie <ibrokemypie@bastardi.net>"
license="GPL-3.0-only"
homepage="https://keepassxc.org/"
distfiles="https://github.com/keepassxreboot/keepassxc/releases/download/${version}/keepassxc-${version}-src.tar.xz"
checksum=0c24a78895185b9b6b098f08a15b332c600f80aa570d608940fcc2a38e02780a
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools"
fi
build_options="autotype browser network sshagent yubikey"
desc_option_autotype="Enable auto-type"
desc_option_browser="Enable browser integration with keepassxc-browser"
desc_option_network="Enable networking support (favicon download)"
desc_option_sshagent="Enable SSH agent support"
desc_option_yubikey="Enable YubiKey HMAC-SHA1 authentication support"
build_options_default="autotype browser sshagent yubikey network"
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
}