pentoo-overlay/app-crypt/lxqt_wallet/lxqt_wallet-4.0.2.ebuild
Anton Bolshakov df4f822c9d
sirikali
2025-07-14 09:46:06 +08:00

39 lines
914 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_BUILD_TYPE=RELEASE
inherit cmake
DESCRIPTION="A kwallet like functionality for lxqt"
HOMEPAGE="https://github.com/lxqt/lxqt_wallet"
SRC_URI="https://github.com/lxqt/lxqt_wallet/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64"
IUSE="+keyring kwallet test"
RESTRICT="!test? ( test )"
DEPEND="
dev-qt/qtbase:6[dbus,gui,network,widgets]
dev-libs/libgcrypt:0=
keyring? ( app-crypt/libsecret )
kwallet? ( kde-frameworks/kwallet )
"
PATCHES=("${FILESDIR}/kwallet6.patch")
src_configure() {
local mycmakeargs=(
-DNOSECRETSUPPORT=$(usex keyring false true)
-DNOKDESUPPORT=$(usex kwallet false true)
)
cmake_src_configure
}
pkg_postinst() {
if has_version 'kde-frameworks/kwallet:6'; then
ewarn "This software does not support kwallet6 yet"
fi
}