buildroot:kidletime
kidletime
Monitoring user activity
| runtime dependencies | qt5x11extras (Graphic libraries and applications/Other GUIs) |
|---|---|
| libxss | |
| make dependencies | extra-cmake-modules |
| qt5tools | |
| qt5-doc | |
| extra-cmake-modules | |
| libqt5x11extras5-dev | |
| libxss-dev | |
| doxygen |
apt install extra-cmake-modules libqt5x11extras5-dev libxss-dev doxygen
mkdir /data/buildroot/package/kidletime
cat > /data/buildroot/package/kidletime/Config.in<< 'EOF'
config BR2_PACKAGE_KIDLETIME
bool "kidletime"
depends on BR2_PACKAGE_QT5X11EXTRAS
depends on BR2_PACKAGE_LIBXSS
depends on BR2_PACKAGE_QT5TOOLS
help
Monitoring user activity
EOF
cat > /data/buildroot/package/kidletime/kidletime.mk<< 'EOF'
#############################################################
#
# kidletime
#https://download.kde.org/stable/frameworks/5.95/kidletime-5.94.0.tar.xz
#############################################################
KIDLETIME_VERSION = 5.94.0
KIDLETIME_SOURCE = kidletime-$(KIDLETIME_VERSION).tar.xz
KIDLETIME_SITE = https://download.kde.org/stable/frameworks/5.94
KIDLETIME_DEPENDENCIES = qt5x11extras libxss qt5tools
KIDLETIME_INSTALL_TARGET = YES
KIDLETIME_SUPPORTS_IN_SOURCE_BUILD = NO
KIDLETIME_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \
-DCMAKE_INSTALL_PREFIX=/usr
define KIDLETIME_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_CMAKE_CONF_OPTS)
endef
$(eval $(cmake-package))
EOF
sed -i '/menu "Custom packages"/a source "package/kidletime/Config.in"' /data/buildroot/package/Config.in
buildroot/kidletime.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1
