updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lightning-bin / PKGBUILD
blob2077d356bbc649c755ce2ac6be620295c936b233
1 # Maintainer: Joel Goguen <jgoguen (at-sign) jgoguen (period) ca>
2 # Maintainer: Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar>
3 pkgname=lightning-bin
4 pkgver=1.1.1
5 pkgrel=1
6 pkgdesc="A version of Mozilla Sunbird integrated with Thunderbird"
7 arch=('i686' 'x86_64')
8 url="http://www.mozilla.org/projects/calendar/lightning/"
9 license=('MPL' 'GPL' 'LGPL')
10 depends=('thunderbird>=9' 'libnotify')
11 makedepends=()
12 options=(!strip)
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')
19 build() {
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/')
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 \{\} \+