some patches and configuration for st terminal emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
483 B

#!/usr/bin/env zsh
set -x -e
ST_REPO=https://git.suckless.org/st
ST_SRC=$PWD/st
ST_CFG=$PWD/config.h
PATCHLIST=(
st-disable-intensity-styles.patch
)
MAKE_OPTS=(
PREFIX=$HOME/.local
)
if [[ ! -r $ST_SRC/.git/config ]]; then
git clone $ST_REPO $ST_SRC
cd $ST_SRC
else
cd $ST_SRC
git reset --hard
git clean -fd
git pull
fi
cp $ST_CFG .
for patch in $PATCHLIST; do
patch --no-backup-if-mismatch -p1 -i ../$patch
done
make $MAKE_OPTS ${*:-install}