Skip to content

Commit

Permalink
up fluxbox/build
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 5, 2023
1 parent 24b8507 commit 485f945
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions compile/src/fluxbox/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}


Expand All @@ -74,7 +95,7 @@ cache)
# down_catfile ${FDKAAC_URL} > /dev/null
;;
full)
st
fluxbox
;;
*) #compile
# $1 |tee $LOGS/$1.log
Expand Down

0 comments on commit 485f945

Please sign in to comment.