st-patches/makest

34 lines
604 B
Text
Raw Normal View History

#!/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-boxdraw_v2-0.8.2.diff
st-bright-bold-text.patch
st-clipboard.patch
st-disable-bold-italic-fonts.patch
st-disable-intensity-styles.patch
2018-12-04 15:15:22 +02:00
)
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
2019-01-14 13:39:55 +02:00
patch --no-backup-if-mismatch -p1 -i ../$patch
done
make $MAKE_OPTS ${*:-install}