updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / lightning-gdata-provider-bin / PKGBUILD
blob2a402eda56025c37d9db22b436b562b2244b96a7
1 # Maintainer: Joel Goguen <jgoguen (at-sign) jgoguen (period) ca>
2 pkgname=lightning-gdata-provider-bin
3 pkgver=1.0b2rc3
4 pkgrel=2
5 _tb_ver=3.1 # Adjust this to the current thunderbird major/minor release
6 pkgdesc="Provides lightning with access to Google data"
7 arch=('i686' 'x86_64')
8 url="http://www.mozilla.org/projects/calendar/lightning/"
9 license=('MPL' 'GPL' 'LGPL')
10 depends=('thunderbird' 'libnotify' 'lightning-bin')
11 makedepends=()
12 options=()
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)
19 build() {
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/')
25         cd ../
26         mv ${pkgname} ${_emid}
27         cd ${_emid}
29         # Fix permissions
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 \{\} \+