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.

makest 604B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env zsh
  2. set -x -e
  3. ST_REPO=https://git.suckless.org/st
  4. ST_SRC=$PWD/st
  5. ST_CFG=$PWD/config.h
  6. PATCHLIST=(
  7. st-boxdraw_v2-0.8.2.diff
  8. st-bright-bold-text.patch
  9. st-clipboard.patch
  10. st-disable-bold-italic-fonts.patch
  11. st-disable-intensity-styles.patch
  12. )
  13. MAKE_OPTS=(
  14. PREFIX=$HOME/.local
  15. )
  16. if [[ ! -r $ST_SRC/.git/config ]]; then
  17. git clone $ST_REPO $ST_SRC
  18. cd $ST_SRC
  19. else
  20. cd $ST_SRC
  21. git reset --hard
  22. git clean -fd
  23. git pull
  24. fi
  25. cp $ST_CFG .
  26. for patch in $PATCHLIST; do
  27. patch --no-backup-if-mismatch -p1 -i ../$patch
  28. done
  29. make $MAKE_OPTS ${*:-install}