updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pomodo / PKGBUILD
blob4ca5b553a0a333b6dc97844ebedadd751fbcbaef
1 # Contributor: Ricardo Funke Ormieres <ricardo DOT funke at gmail DOT com>
3 pkgname=pomodo
4 pkgver=0.4.5
5 pkgrel=7
6 pkgdesc="An Adobe Air application for working with the Pomodoro technique"
7 arch=('i686' 'x86_64')
8 url="http://pomodo.areacriacoes.com.br/"
9 license=('custom')
10 depends=('adobe-air')
11 makedepends=('unzip')
12 source=(http://pomodo.areacriacoes.com.br/download/pomodo.air)
13 md5sums=('69b7bbb005fdfc2302652b6e22dcb5e1')
15 build()
17    cd ${srcdir}
18    mkdir -p ${pkgdir}/opt/$pkgname
19    unzip ${pkgname}.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=Pomodo" >> ${srcdir}/${pkgname}.desktop
31    echo "Terminal=false" >> ${srcdir}/${pkgname}.desktop
32    echo "Type=Application" >> ${srcdir}/${pkgname}.desktop
34    install -m644 -D ${srcdir}/app/assets/images/icons/128.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
35    install -m644 -D ${srcdir}/${pkgname}.air ${startdir}/pkg/opt/${pkgname}/${pkgname}.air
36    install -m644 -D ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop