Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- architecture=`uname -mrs`
- #Download Wunderlist
- if [[ $architecture == *x86_64* ]]
- then
- wget http://www.6wunderkinder.com/downloads/wunderlist-1.2.4-linux-64.tgz
- else
- wget http://www.6wunderkinder.com/downloads/wunderlist-1.2.4-linux-32.tgz
- fi
- tar -xzf wunderlist*.tgz -C /opt/
- mv /opt/Wunderlist-* /opt/wunderlist
- chown root:root -R /opt/wunderlist
- #Dependencies
- apt-get install libcurl3
- apt-get install libxss1
- mv /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4.backup
- if [[ $architecture == *x86_64* ]]
- then
- ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4
- ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 /usr/lib/x86_64-linux-gnu/libffi.so.5
- ln -s /usr/lib/x86_64-linux-gnu/libnotify.so.4 /usr/lib/x86_64-linux-gnu/libnotify.so.1
- else
- ln -s /usr/lib/i386-linux-gnu/libcurl.so.4 /opt/wunderlist/runtime/1.2.0.RC3/libcurl.so.4
- ln -s /usr/lib/i386-linux-gnu/libffi.so.6 /usr/lib/i386-linux-gnu/libffi.so.5
- ln -s /usr/lib/i386-linux-gnu/libnotify.so.4 /usr/lib/i386-linux-gnu/libnotify.so.1
- fi
- #Create Application Link
- echo "[Desktop Entry]" > /usr/share/applications/wunderlist.desktop
- echo "Type=Application" >> /usr/share/applications/wunderlist.desktop
- echo "Name=Wunderlist" >> /usr/share/applications/wunderlist.desktop
- echo "Name[de]=Wunderlist" >> /usr/share/applications/wunderlist.desktop
- echo "GenericName=Task Management Tool" >> /usr/share/applications/wunderlist.desktop
- echo "GenericName[de]=Aufgabenverwaltung" >> /usr/share/applications/wunderlist.desktop
- echo "Comment=Organize your life with Wunderlist" >> /usr/share/applications/wunderlist.desktop
- echo "Comment[de]=Organisiere dein Leben mit Wunderlist" >> /usr/share/applications/wunderlist.desktop
- echo "Icon=/opt/wunderlist/Resources/wunderlist.png" >> /usr/share/applications/wunderlist.desktop
- echo "Exec=/opt/wunderlist/Wunderlist" >> /usr/share/applications/wunderlist.desktop
- echo "Categories=Office;ProjectManagement;" >> /usr/share/applications/wunderlist.desktop
- echo "Terminal=false" >> /usr/share/applications/wunderlist.desktop
- echo "StartupNotify=true" >> /usr/share/applications/wunderlist.desktop
- echo "X-MB-SingleInstance=true" >> /usr/share/applications/wunderlist.desktop
- echo "X-Ubuntu-Gettext-Domain=tasks" >> /usr/share/applications/wunderlist.desktop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement