46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
# Template file for 'keepassxc'
|
|
pkgname=keepassxc
|
|
version=2.3.1
|
|
revision=2
|
|
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, 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=ce7d8251d4d5b35f602ff521764910964da6d8a67397399855a6e8c5ff5db9bd
|
|
|
|
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 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
|
|
}
|