Advertisement
Guest User

installWunderlist.sh

a guest
Nov 13th, 2011
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.34 KB | None | 0 0
  1. #!/bin/bash
  2. architecture=`uname -mrs`
  3.  
  4. #Download Wunderlist
  5. if [[ $architecture == *x86_64* ]]
  6. then
  7. wget http://www.6wunderkinder.com/downloads/wunderlist-1.2.4-linux-64.tgz
  8. else
  9. wget http://www.6wunderkinder.com/downloads/wunderlist-1.2.4-linux-32.tgz
  10. fi
  11.  
  12. tar -xzf wunderlist*.tgz -C /opt/
  13. mv /opt/Wunderlist-* /opt/wunderlist
  14. chown root:root -R /opt/wunderlist
  15.  
  16. #Dependencies
  17. apt-get install libcurl3
  18. apt-get install libxss1
  19.  
  20.  
  21. mv /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4.backup
  22. if [[ $architecture == *x86_64* ]]
  23. then
  24. ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4
  25. ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 /usr/lib/x86_64-linux-gnu/libffi.so.5
  26. ln -s /usr/lib/x86_64-linux-gnu/libnotify.so.4 /usr/lib/x86_64-linux-gnu/libnotify.so.1
  27. else
  28. ln -s /usr/lib/i386-linux-gnu/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4
  29. ln -s /usr/lib/i386-linux-gnu/libffi.so.6 /usr/lib/i386-linux-gnu/libffi.so.5
  30. ln -s /usr/lib/i386-linux-gnu/libnotify.so.4 /usr/lib/i386-linux-gnu/libnotify.so.1
  31. fi
  32.  
  33. #Create Application Link
  34. echo "[Desktop Entry]" > /usr/share/applications/wunderlist.desktop
  35. echo "Type=Application" >> /usr/share/applications/wunderlist.desktop
  36. echo "Name=Wunderlist" >> /usr/share/applications/wunderlist.desktop
  37. echo "Name[de]=Wunderlist" >> /usr/share/applications/wunderlist.desktop
  38. echo "GenericName=Task Management Tool" >> /usr/share/applications/wunderlist.desktop
  39. echo "GenericName[de]=Aufgabenverwaltung" >> /usr/share/applications/wunderlist.desktop
  40. echo "Comment=Organize your life with Wunderlist" >> /usr/share/applications/wunderlist.desktop
  41. echo "Comment[de]=Organisiere dein Leben mit Wunderlist" >> /usr/share/applications/wunderlist.desktop
  42. echo "Icon=/opt/wunderlist/Resources/wunderlist.png" >> /usr/share/applications/wunderlist.desktop
  43. echo "Exec=/opt/wunderlist/Wunderlist" >> /usr/share/applications/wunderlist.desktop
  44. echo "Categories=Office;ProjectManagement;" >> /usr/share/applications/wunderlist.desktop
  45. echo "Terminal=false" >> /usr/share/applications/wunderlist.desktop
  46. echo "StartupNotify=true" >> /usr/share/applications/wunderlist.desktop
  47. echo "X-MB-SingleInstance=true" >> /usr/share/applications/wunderlist.desktop
  48. echo "X-Ubuntu-Gettext-Domain=tasks" >> /usr/share/applications/wunderlist.desktop
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement