1 # Contributor: Ricardo Funke Ormieres <ricardo DOT funke at gmail DOT com>
6 pkgdesc="An Adobe Air application for working with the Pomodoro technique"
8 url="http://code.google.com/p/pomodairo/"
12 source=("http://pomodairo.googlecode.com/files/pomodairo-${pkgver}.air")
13 md5sums=('9f6ae328f4958e9b1afe20dbc46be5ea')
18 mkdir -p ${pkgdir}/opt/$pkgname
19 unzip ${pkgname}-${pkgver}.air -d ${srcdir}
21 echo "[Desktop Entry]" >> ${srcdir}/${pkgname}.desktop
22 echo "Categories=Office;ProjectManagement;" >> ${srcdir}/${pkgname}.desktop
23 echo "Comment=$pkgdesc" >> ${srcdir}/${pkgname}.desktop
24 echo "Encoding=UTF-8" >> ${srcdir}/${pkgname}.desktop
25 echo "Exec=adobe-air /opt/${pkgname}/${pkgname}.air" >> ${srcdir}/${pkgname}.desktop
26 echo "GenericName=$pkgname" >> ${srcdir}/${pkgname}.desktop
27 echo "Hidden=false" >> ${srcdir}/${pkgname}.desktop
28 echo "Icon=${pkgname}.png" >> ${srcdir}/${pkgname}.desktop
29 echo "MimeType=application/vnd.adobe.air-application-installer-package+zip" >> ${srcdir}/${pkgname}.desktop
30 echo "Name=$pkgname" >> ${srcdir}/${pkgname}.desktop
31 echo "Terminal=false" >> ${srcdir}/${pkgname}.desktop
32 echo "Type=Application" >> ${srcdir}/${pkgname}.desktop
34 install -m644 -D ${srcdir}/assets/clock-48x48.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
35 install -m644 -D ${srcdir}/${pkgname}-${pkgver}.air ${startdir}/pkg/opt/${pkgname}/${pkgname}.air
36 install -m644 -D ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop