updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pomodairo / PKGBUILD
blobd9971636bf870802f5c78f4663033c2204087f71
1 # Contributor: Ricardo Funke Ormieres <ricardo DOT funke at gmail DOT com>
3 pkgname=pomodairo
4 pkgver=1.9
5 pkgrel=1
6 pkgdesc="An Adobe Air application for working with the Pomodoro technique"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/pomodairo/"
9 license=('custom')
10 depends=('adobe-air')
11 makedepends=('unzip')
12 source=("http://pomodairo.googlecode.com/files/pomodairo-${pkgver}.air")
13 md5sums=('9f6ae328f4958e9b1afe20dbc46be5ea')
15 build()
17    cd ${srcdir}
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