trisquel-install.sh 814 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. wget http://libregamenight.xyz/pub/data/wesnoth/data.deb
  3. sudo dpkg -i data.deb
  4. wget http://libregamenight.xyz/pub/data/wesnoth/music.deb
  5. sudo dpkg -i music.deb
  6. if [ $(arch) = "x86_64" ]
  7. then
  8. wget http://libregamenight.xyz/pub/data/wesnoth/amd64.deb
  9. sudo dpkg -i amd64.deb
  10. if [ $? -eq 1 ]
  11. then
  12. sudo apt-get install -f
  13. sudo dpkg -i amd64.deb
  14. fi
  15. else
  16. wget http://libregamenight.xyz/pub/data/wesnoth/i386.deb
  17. sudo dpkg -i i386.deb
  18. if [ $? -eq 1 ]
  19. then
  20. sudo apt-get install -f
  21. sudo dpkg -i i386.deb
  22. fi
  23. fi
  24. echo "Time to reap the profits, now!"
  25. echo "If everything, went smoothly, The Battle for Wesnoth is now installed-- it should be in your Games menu."
  26. echo "Cheers!"