From 485f945983b472cc13bfdfc9838937471c5553c7 Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Mon, 6 Nov 2023 00:52:02 +0800 Subject: [PATCH] up fluxbox/build --- compile/src/fluxbox/build.sh | 53 +++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/compile/src/fluxbox/build.sh b/compile/src/fluxbox/build.sh index 6990eef8..6da951a2 100644 --- a/compile/src/fluxbox/build.sh +++ b/compile/src/fluxbox/build.sh @@ -5,9 +5,9 @@ set -e # Exit immediately if a command exits with a non-zero status. gh=https://ghps.cc/ -# https://gitee.com/g-system/fk-suckless-st #git clone; -ST_VER=0.8.4 -ST_URL=${gh}https://github.com/neutrinolabs/xrdp/releases/download/v${XRDP_VER}/xrdp-${XRDP_VER}.tar.gz +# https://gitee.com/g-system/fk-suckless-fluxbox #git clone; +FLUXBOX_VER=0.8.4 +FLUXBOX_URL=${gh}https://github.com/neutrinolabs/xrdp/releases/download/v${XRDP_VER}/xrdp-${XRDP_VER}.tar.gz # Set same default compilation flags as abuild. export CFLAGS="-Os -fomit-frame-pointer" @@ -46,25 +46,46 @@ function log { # export CXX=clang++ # -# Build st +# Build fluxbox # -function st(){ -log "Downloading ST..." -rm -rf /tmp/st; # mkdir -p /tmp/st -# down_catfile ${ST_URL} | tar -zx --strip 1 -C /tmp/st -# https://dl.suckless.org/st/st-0.8.4.tar.gz -git clone --depth=1 --branch=$ST_VER git://git.suckless.org/st /tmp/st #; -log "Configuring ST..." -cd /tmp/st #&& ./bootstrap; +function fluxbox(){ +log "Downloading FLUXBOX..." +rm -rf /tmp/fluxbox; # mkdir -p /tmp/fluxbox +# down_catfile ${FLUXBOX_URL} | tar -zx --strip 1 -C /tmp/fluxbox +# https://dl.suckless.org/fluxbox/fluxbox-0.8.4.tar.gz +branch="--branch=$FLUXBOX_VER" +git clone --depth=1 $branch https://gitee.com/g-system/fk-fluxbox /tmp/fluxbox #; +log "Configuring FLUXBOX..." +cd /tmp/fluxbox #&& ./bootstrap; +# CONFIGURE去EX_LIBS>> OK; disable_x4> enable_x4 +autoreconf -fi +# --disable-remember \ +./configure \ + --prefix=/usr/local/static/fluxbox \ + --enable-xmb \ + --enable-slit \ + --enable-toolbar \ + --enable-fribidi \ + \ + --disable-imlib2 \ + --disable-nls \ + --disable-xft \ + --disable-xinerama \ + \ + --enable-static \ + --disable-shared \ + LIBS="-lxcb -lXdmcp -lXau -lpthread" #$EX_LIBS +make clean +make LDFLAGS="-static" -log "Install ST..." +log "Install FLUXBOX..." # make; make install; # view -ls -lh /tmp/st/ -xx-verify --static /tmp/st/st +ls -lh /tmp/fluxbox/ +xx-verify --static /tmp/fluxbox/fluxbox } @@ -74,7 +95,7 @@ cache) # down_catfile ${FDKAAC_URL} > /dev/null ;; full) - st + fluxbox ;; *) #compile # $1 |tee $LOGS/$1.log