/admin/win/update-vlc.sh

http://github.com/tomahawk-player/tomahawk · Shell · 87 lines · 44 code · 11 blank · 32 comment · 1 complexity · 73d30f5f1892483b3688dd37bd436e7b MD5 · raw file

  1. #!/bin/bash
  2. if [ "$1" = "-c" ] ; then
  3. echo "Continuing last download.."
  4. rm -rvf vlc/
  5. else
  6. echo "Update archive..."
  7. fi
  8. rm -rvf vlc/
  9. VLC_TARBALL="vlc.tar.bz2"
  10. echo "Download phonon archive..."
  11. # wget -c "http://downloads.sourceforge.net/project/vlc/1.1.9/win32/vlc-1.1.9-win32.7z?r=http%3A%2F%2Fwww.videolan.org%2Fvlc%2Fdownload-windows.html&ts=1306272584&use_mirror=leaseweb"
  12. # wget -c "http://download.tomahawk-player.org/tomahawk-vlc-0.1.zip"
  13. # wget -c http://people.videolan.org/~jb/phonon/phonon-vlc-last.7z
  14. # wget -c http://people.videolan.org/~jb/phonon/phonon_phonon-vlc_20111128.7z
  15. wget -c "http://download.tomahawk-player.org/test/$VLC_TARBALL"
  16. echo "Extract binary..."
  17. # 7z x phonon*.7z
  18. # mv -v vlc-*/ vlc/
  19. # unzip tomahawk-vlc-0.1.zip
  20. tar xvjf "$VLC_TARBALL"
  21. # echo "Download phonon_vlc_no_video.dll..."
  22. # wget -c http://people.videolan.org/~jb/phonon/phonon_vlc_no_video.dll
  23. # cp -v phonon_vlc_no_video.dll prefix/bin/phonon_backend/phonon_vlc.dll
  24. # echo "Strip unneeded plugins from vlc/plugins..."
  25. # cd prefix/bin/plugins
  26. # rm -rvf libold* libvcd* libdvd* liblibass* libx264* libschroe* liblibmpeg2* \
  27. # libstream_out_* libmjpeg_plugin* libh264_plugin* libzvbi_plugin* lib*sub* \
  28. # *qt4* *skins2* libaccess_bd_plugin.dll \
  29. # libaudiobargraph_* libball_plugin.dll \
  30. # libdirac_plugin.dll \
  31. # libgnutls_plugin.dll \
  32. # libcaca_plugin.dll \
  33. # libfreetype_plugin.dll \
  34. # libaccess_output_shout_plugin.dll \
  35. # libremoteosd_plugin.dll \
  36. # libsdl_image_plugin.dll \
  37. # libvout_sdl_plugin.dll \
  38. # libpng_plugin.dll \
  39. # libgoom_plugin.dll \
  40. # libatmo_plugin.dll \
  41. # libmux_ts_plugin.dll \
  42. # libkate_plugin.dll \
  43. # libtaglib_plugin.dll
  44. # this is for vlc-2.x
  45. cd vlc/plugins
  46. rm -rvf \
  47. video_*/ \
  48. gui/ \
  49. **/libold* \
  50. **/libvcd* \
  51. **/libdvd* \
  52. **/liblibass* \
  53. **/libx264* \
  54. **/libschroe* \
  55. **/liblibmpeg2* \
  56. **/libstream_out_* \
  57. **/libmjpeg_plugin* \
  58. **/libh264_plugin* \
  59. **/libzvbi_plugin* \
  60. **/lib*sub* \
  61. services_discovery/ \
  62. visualization/ \
  63. control/ \
  64. **/libi420* \
  65. **/libi422* \
  66. mux/ \
  67. stream_filter/*dash* \
  68. stream_filter/*smooth* \
  69. stream_filter/*record* \
  70. **/libtheora_plugin* \
  71. **/liblibbluray_plugin* \
  72. **/libdtv_plugin* \
  73. **/*.dll.a \
  74. **/*.la \
  75. misc/liblogger_plugin*
  76. echo "Downloaded and stripped VLC"