1 # Contributor: Adam Eberlin (intellitech) < ae at intellitech dot org >
2 # Contributor: Chris Portela (chrisportela) < chris at chris-portela dot com >
7 pkgdesc="Standalone Adobe Air Application for Pandora Radio"
9 url="http://www.pandora.com/desktop"
14 [[ "${CARCH}" == 'x86_64' ]] &&
15 depends=('bin32-adobe-air')
18 source=('http://www.pandora.com/radio/static/desktop_app/pandora_2_0_5.air')
19 md5sums=('024276f67ecaadf45f632908b3052daa')
24 mkdir -p ${startdir}/pkg/opt/pandora
26 unzip pandora_2_0_5.air -d ${startdir}/src
28 cp pandora_2_0_5.air ${startdir}/pkg/opt/pandora
30 echo "[Desktop Entry]" >> ${startdir}/src/pandora.desktop
31 echo "Categories=GTK;Application;AudioVideo;Audio;Video;Player;" >> ${startdir}/src/pandora.desktop
32 echo "Comment=Standalone Adobe Air Application for Pandora Radio" >> ${startdir}/src/pandora.desktop
33 echo "Encoding=UTF-8" >> ${startdir}/src/pandora.desktop
34 echo "Exec=adobe-air /opt/pandora/pandora_2_0_5.air" >> ${startdir}/src/pandora.desktop
35 echo "GenericName=Pandora" >> ${startdir}/src/pandora.desktop
36 echo "Hidden=false" >> ${startdir}/src/pandora.desktop
37 echo "Icon=pandora.png" >> ${startdir}/src/pandora.desktop
38 echo "MimeType=application/vnd.adobe.air-application-installer-package+zip" >> ${startdir}/src/pandora.desktop
39 echo "Name=Pandora" >> ${startdir}/src/pandora.desktop
40 echo "Terminal=false" >> ${startdir}/src/pandora.desktop
41 echo "Type=Application" >> ${startdir}/src/pandora.desktop
43 install -m644 -D ${startdir}/src/src/images/icon/icon-128.png ${startdir}/pkg/usr/share/pixmaps/pandora.png
44 install -m644 -D ${startdir}/src/pandora_2_0_5.air ${startdir}/pkg/opt/pandora
46 install -m644 -D ${startdir}/src/pandora.desktop ${startdir}/pkg/usr/share/applications/pandora.desktop