install_geany_plugins.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/ksh
  2. doas pkg_add geany intltool
  3. #cd /tmp
  4. #curl -OL "https://plugins.geany.org/geany-plugins/geany-plugins-1.38.tar.gz"
  5. #gpg --recv-keys 01380DF54FD09D02
  6. #gpg --verify geany-plugins-1.38.tar.gz.sig geany-plugins-1.38.tar.gz
  7. application=geany-plugins
  8. repository=https://github.com/geany/geany-plugins.git
  9. export compile=
  10. mkdir -p ~/src
  11. cd ~/src || return
  12. if [ ! -d $application ]; then
  13. git clone $repository
  14. cd $application || return
  15. export compile=true
  16. else
  17. cd $application || return
  18. #git pull
  19. pwd
  20. git fetch
  21. LOCAL=$(git rev-parse HEAD)
  22. REMOTE=$(git rev-parse @{u})
  23. if [ ! $LOCAL = $REMOTE ]; then
  24. pwd
  25. echo "Need to pull"
  26. git pull
  27. export compile=true
  28. fi
  29. fi
  30. if [ "$compile" = "true" ]; then
  31. cd ~/src/$application || return
  32. echo ""
  33. echo "NOTE: If getting a 'Provide an AUTOMAKE_VERSION environment variable, please' error do this:"
  34. echo "$ export AUTOMAKE_VERSION=1.16 # <- (version without minor number 1.16.5 > 1.16)"
  35. echo "$ export AUTOCONF_VERSION=2.71 # <- (version without minor number 2.71p3 > 2.71)"
  36. echo ""
  37. export AUTOMAKE_VERSION=1.16
  38. export AUTOCONF_VERSION=2.71
  39. ./autogen.sh
  40. gmake
  41. doas gmake install
  42. fi