Guest User

Untitled

a guest
Jan 8th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # make sure this is run as root
  4. uid=$(id -ur)
  5. if [ "$uid" != "0" ]; then
  6. echo "ERROR: This script must be run as root."
  7. if [ -x /usr/bin/sudo ]; then
  8. echo "try: sudo $0"
  9. fi
  10. exit 1
  11. fi
  12.  
  13. # ubuntu/debian based distributions
  14. if [ -x /usr/bin/apt-get ]; then
  15. apt-get install wine-stable 3.0-1ubuntu1
  16. python-qt4-phonon python-qt4
  17. exit $?
  18. fi
  19.  
  20. # archlinux
  21. if [ -x /usr/bin/pacman ]; then
  22. pacman -S multilib/wine multilib/lib32-mpg123 extra/pyqt4-common extra/python-pyqt4 extra/phonon-qt4 extra/python2-pyqt4 extra/python2-sip
  23. exit $?
  24. fi
  25.  
  26. # fedora (untested)
  27. if [ -x /usr/bin/yum ]; then
  28. yum install wine pyqt4
  29. exit $?
  30. fi
  31.  
  32. # suse/opensuse (untested)
  33. if [ -x /usr/bin/zypper ] ; then
  34. zypper in wine python-qt4
  35. exit $?
  36. fi
  37.  
  38. echo "Your distribution is not supported :("
  39. echo "Please install 'pyqt4' and 'wine' to run fightcade."
  40. exit 1
Advertisement
Add Comment
Please, Sign In to add comment