1 # Maintainer: Joel Goguen <jgoguen (at-sign) jgoguen (period) ca>
2 pkgname=lightning-gdata-provider-bin
5 _tb_ver=3.1 # Adjust this to the current thunderbird major/minor release
6 pkgdesc="Provides lightning with access to Google data"
8 url="http://www.mozilla.org/projects/calendar/lightning/"
9 license=('MPL' 'GPL' 'LGPL')
10 depends=('thunderbird' 'libnotify' 'lightning-bin')
13 provides=(lightning-gdata-provider=${pkgver})
15 # The XPI files are the same for i686 and x86_64
16 source=(http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/${pkgver}/linux-i686/gdata-provider.xpi)
17 sha256sums=(325a30c0f98efe451cb3949b0a5075f2a2d999f4f7b22f2884108a438d63df6a)
20 mkdir -p ${pkgdir}/usr/lib/thunderbird-${_tb_ver}/extensions/${pkgname}
21 cd ${pkgdir}/usr/lib/thunderbird-${_tb_ver}/extensions/${pkgname}
22 bsdtar -x -f ${srcdir}/gdata-provider.xpi
24 _emid=$(grep em:id install.rdf | head -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 \{\} \+