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