1 # Maintainer: Joel Goguen <jgoguen (at-sign) jgoguen (period) ca>
2 # Maintainer: Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar>
6 pkgdesc="A version of Mozilla Sunbird integrated with Thunderbird"
8 url="http://www.mozilla.org/projects/calendar/lightning/"
9 license=('MPL' 'GPL' 'LGPL')
10 depends=('thunderbird>=9' 'libnotify')
13 provides=(lightning=${pkgver})
14 _tb_version=$(pacman -Qi thunderbird|grep Version|cut -f 2 -d ":"|cut -f 2 -d " "|cut -f 1 -d -)
16 source=(https://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/releases/${pkgver}/linux/lightning.xpi)
17 sha1sums=('1f57bf10f9978a0791b5db23dcd97a76e464fc84')
20 mkdir -p ${pkgdir}/usr/lib/thunderbird/extensions/${pkgname}
21 cd ${pkgdir}/usr/lib/thunderbird/extensions/${pkgname}
22 bsdtar -x -f ${srcdir}/lightning.xpi
24 _emid=$(grep em:id install.rdf | tail -n 1 | sed 's/.*>\(.*\)<.*/\1/')
26 mv ${pkgname} ${_emid}
30 find -type d -exec chmod 0755 \{\} \+ || return 1
31 find -type f -exec chmod 0644 \{\} \+ || return 1
32 find -name '*.so' -exec chmod 0755 \{\} \+