Created
October 20, 2021 02:17
-
-
Save sairuk/3786bed0689f973b8230532543b657e2 to your computer and use it in GitHub Desktop.
xfce compile script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
export PREFIX=/opt/xfce4.16 | |
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH" | |
export CFLAGS="-O2 -pipe" | |
LOGDIR=$HOME/logs/xfce | |
COMPONENTS=( | |
xfce4-dev-tools-4.16.0 | |
libxfce4ui-4.16.0 | |
libxfce4util-4.16.0 | |
xfconf-4.16.0 | |
tumbler-4.16.0 | |
thunar-volman-4.16.0 | |
xfce4-panel-4.16.0 | |
xfce4-power-manager-4.16.0 | |
# | |
## requires libxfce4ui-4 | |
exo-4.16.0 | |
garcon-0.8.0 | |
xfce4-appfinder-4.16.0 | |
xfce4-session-4.16.0 | |
xfce4-settings-4.16.0 | |
xfdesktop-4.16.0 | |
# | |
## requires exo-4 | |
thunar-4.16.0 | |
xfwm4-4.16.0 | |
) | |
SRCDIR=$HOME/devel/xfce/src/ | |
[ ! -d $LOGDIR ] && mkdir -p $LOGDIR | |
for COMPONENT in ${COMPONENTS[@]} | |
do | |
cd $SRCDIR/$COMPONENT | |
[ ! -d $LOGDIR/$COMPONENT ] && mkdir -p $LOGDIR/$COMPONENT | |
echo "############### $COMPONENT #######################" | |
echo "CONFIGURE" | |
case $COMPONENT in | |
xfwm4*) | |
EXTRAOPTS=" --enable xpresent" | |
;; | |
esac | |
./configure --prefix=${PREFIX} &> $LOGDIR/$COMPONENT/configure.log | |
[ $? -ne 0 ] && exit 1 | |
echo "MAKE" | |
make -j$(nproc) &> $LOGDIR/$COMPONENT/make.log | |
[ $? -ne 0 ] && exit 1 | |
echo "INSTALL" | |
sudo make install &> $LOGDIR/$COMPONENT/install.log | |
[ $? -ne 0 ] && exit 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment