Secure storage of information for lxqt
| runtime dependencies | libgcrypt (Libraries/Crypto) |
|---|---|
| libsecret | |
| make dependencies | qt5 |
| kwallet | |
| libsecret | |
| qt5tools |
mkdir /data/buildroot/package/lxqt-wallet
cat > /data/buildroot/package/lxqt-wallet/Config.in<< 'EOF'
config BR2_PACKAGE_LXQT_WALLET
bool "lxqt-wallet"
depends on BR2_PACKAGE_LIBGCRYPT
depends on BR2_PACKAGE_LIBSECRET
depends on BR2_PACKAGE_QT5TOOLS
help
Secure storage of information for lxqt
EOF
cat > /data/buildroot/package/lxqt-wallet/lxqt-wallet.mk<< 'EOF'
#############################################################
#
# lxqt-wallet
#https://github.com/lxqt/lxqt_wallet/archive/refs/tags/3.2.2.tar.gz
#############################################################
LXQT_WALLET_VERSION = 3.2.2
LXQT_WALLET_SOURCE = $(LXQT_WALLET_VERSION).tar.gz
LXQT_WALLET_SITE = https://github.com/lxqt/lxqt_wallet/archive/refs/tags
LXQT_WALLET_DEPENDENCIES = libgcrypt libsecret qt5tools
LXQT_WALLET_INSTALL_TARGET = YES
LXQT_WALLET_SUPPORTS_IN_SOURCE_BUILD = NO
LXQT_WALLET_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \
-DCMAKE_INSTALL_PREFIX=/usr
define LXQT_WALLET_CONFIGURE_CMDS
if [[ ! -L "$(HOST_DIR)/usr/lib/libpcre.so.3" ]]; then ln -s $(HOST_DIR)/usr/lib/libpcre.so $(HOST_DIR)/usr/lib/libpcre.so.3; fi
if [[ ! -d $(@D)/buildroot-build ]]; then mkdir $(@D)/buildroot-build; fi
cd $(@D)/buildroot-build && \
LDFLAGS="$(LDFLAGS) -pthread -Wl,--as-needed -Wl,--allow-shlib-undefined" cmake "$(@D)/" $(LXQT_WALLET_CONF_OPTS)
endef
$(eval $(cmake-package))
EOF
sed -i '/menu "Custom packages"/a source "package/lxqt-wallet/Config.in"' /data/buildroot/package/Config.in