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 565B

1234567891011121314151617181920212223242526272829303132
  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-bright-bold-text.patch
  8. st-clipboard.patch
  9. st-direct-terminfo.patch
  10. st-disable-intensity-styles.patch
  11. )
  12. MAKE_OPTS=(
  13. PREFIX=$HOME/.local
  14. )
  15. if [[ ! -r $ST_SRC/.git/config ]]; then
  16. git clone $ST_REPO $ST_SRC
  17. cd $ST_SRC
  18. else
  19. cd $ST_SRC
  20. git reset --hard
  21. git clean -fd
  22. git pull
  23. fi
  24. cp $ST_CFG .
  25. for patch in $PATCHLIST; do
  26. patch --no-backup-if-mismatch -p1 -i ../$patch
  27. done
  28. make $MAKE_OPTS ${*:-install}