updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / lightning-bin / PKGBUILD
blob60a34aa62ab0523782b9521b9c109dfac10e92c3
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 _tb_min_ver=9.0
7 pkgdesc="A version of Mozilla Sunbird integrated with Thunderbird"
8 arch=('i686' 'x86_64')
9 url="http://www.mozilla.org/projects/calendar/lightning/"
10 license=('MPL' 'GPL' 'LGPL')
11 depends=('thunderbird>=${_tb_min_ver}' 'libnotify')
12 makedepends=()
13 options=(!strip)
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')
20 build() {
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/')
26         cd ../
27         mv ${pkgname} ${_emid}
28         cd ${_emid}
30         # Fix permissions
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 \{\} \+