updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / enigmail-64-bin / PKGBUILD
blobafeab379a2339c670b5fe11bcdbf6f81e956cd9e
1 # Maintainer: Michael Duell <akurei@luamail.net>
2 pkgname=enigmail-64-bin
3 _pkg_main_ver=1.2
4 pkgver=${_pkg_main_ver}
5 pkgrel=3
6 pkgdesc="The Mozilla Thunderbird GnuPG encryption plugin for 64-bit systems. Binary version."
7 arch=('x86_64')
8 url="http://www.mozilla-enigmail.org/"
9 license=('MPL')
10 _tb_min_ver="3.1"
11 depends=('thunderbird>=${_tb_min_ver}' 'xulrunner>=1.9.2')
12 makedepends=('unzip')
13 provides=('enigmail')
14 conflicts=('enigmail' 'enigmail-cvs')
15 install='enigmail-64-bin.install'
16 source=(http://www.mozilla-enigmail.org/download/release/${_pkg_main_ver}/enigmail-${pkgver}-tb.xpi)
17 noextract=(enigmail-${pkgver}-tb.xpi)
18 sha512sums=('2e8251944045dc0fef14958619a6f1bfbfeed5e1c08d5a62dd267ad60c297d1a3037a3fee097fb4afab4d2cf92efbaad4aeb2660305b07ffbfab3d47820fa83c')
19 _tb_version=$(pacman -Qi thunderbird|grep Version|cut -f 2 -d ":"|cut -f 2 -d " "|cut -f 1 -d -)
21 build() {
22   cd "$srcdir/"
23   unzip *.xpi
24   _eid=$(grep "<em:id>" install.rdf | head -n 1 |cut -f 2 -d \>|cut -f 1 -d \<)
25   mkdir -p "${pkgdir}/usr/lib/thunderbird-${_tb_version}/extensions/"
26   unzip -q -d "${pkgdir}/usr/lib/thunderbird-${_tb_version}/extensions/${_eid}" *.xpi
30 # vim:set ts=2 sw=2 et: