compton-conf

A graphical configuration tool for Compton X composite manager.

Paquet obsolète plus maintenu

runtime dependencies qt5base (Graphic libraries and applications/Other GUIs)
libconfig (Libraries/Filesystem)
make dependencies qt5tools
lxqt-build-tools
mkdir /data/buildroot/package/compton-conf
cat > /data/buildroot/package/compton-conf/Config.in<< 'EOF'
config BR2_PACKAGE_COMPTON_CONF
        bool "compton-conf"
        depends on BR2_PACKAGE_QT5
        depends on BR2_PACKAGE_LIBCONFIG
        depends on BR2_PACKAGE_QT5TOOLS
        help
          A graphical configuration tool for Compton X composite manager.
EOF

cat > /data/buildroot/package/compton-conf/compton-conf.mk<< 'EOF'
#############################################################
#
# compton-conf
#https://github.com/lxqt/compton-conf/archive/refs/tags/0.16.0.tar.gz
#############################################################
COMPTON_CONF_VERSION = 0.16.0
COMPTON_CONF_SOURCE  = $(COMPTON_CONF_VERSION).tar.gz
COMPTON_CONF_SITE    = https://github.com/lxqt/compton-conf/archive/refs/tags

COMPTON_CONF_DEPENDENCIES = qt5base libconfig qt5tools
COMPTON_CONF_INSTALL_TARGET = YES
COMPTON_CONF_SUPPORTS_IN_SOURCE_BUILD = NO 
COMPTON_CONF_OPTS = -Dlxqt-build-tools_DIR=$(TARGET-DIR)/usr/share/cmake/lxqt-build-tools \
    -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \
    -DCMAKE_INSTALL_PREFIX=/usr 

define COMPTON_CONF_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)/" $(COMPTON_CONF_OPTS)
endef

$(eval $(cmake-package))
EOF

sed -i '/menu "Custom packages"/a source "package/compton-conf/Config.in"' /data/buildroot/package/Config.in