updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / firefox-extension-https-everywhere / PKGBUILD
blob13d30d159cb4e0455b987e0d2e78011937e10c05
1 # Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
2 # Based on PKGBUILD firefox-extension-video-downloadhelper
4 _plugin_name=https-everywhere
5 _plugin_version=1.2.2
6 pkgdesc="Plugin for firefox which ensures you are using https whenever it's possible."
7 license=('GPL2')
9 pkgname=firefox-extension-$_plugin_name
10 pkgver=$_plugin_version
11 pkgrel=1
12 arch=('any')
13 url="https://www.eff.org/https-everywhere"
14 depends=("firefox>=3.0" "firefox<12.0")
15 source=("https://www.eff.org/files/https-everywhere-latest.xpi")
16 md5sums=('24709c1460322a9a063f3ce191fbd72b')
18 build() {
19   cd $srcdir
20   emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1
21   local dstdir=$pkgdir/usr/lib/firefox/extensions/${emid}
22   install -d $dstdir
23   mv * $dstdir
24   rm $dstdir/https-everywhere-latest.xpi
25   chmod -R 755 $dstdir