updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-extension-nagioschecker / PKGBUILD
blob57e9713067fe3daaa2bf5160bb5e1e3a3463ffc0
1 # Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
2 # Based on PKGBUILD firefox-extension-video-downloadhelper
4 _plugin_name=nagioschecker
5 _plugin_version=0.16
6 pkgdesc="Plugin for firefox, statusbar indicator of the events from the network monitoring system Nagios."
7 license=('MPL')
9 pkgname=firefox-extension-$_plugin_name
10 pkgver=$_plugin_version
11 pkgrel=1
12 arch=('any')
13 url="https://code.google.com/p/nagioschecker/"
14 depends=("firefox>=3.0" "firefox<10.0")
15 source=("https://addons.mozilla.org/firefox/downloads/latest/3607/addon-3607-latest.xpi")
16 md5sums=('6ad71fd4d6fed74a272072f804abb80e')
18 build() {
19   cd $srcdir
20   emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1
22   # Increase max version (reported on https://addons.mozilla.org/en-US/firefox/addon/nagios-checker/)
23   sed -i 's/<em:maxVersion>\(.*\)<\/em:maxVersion>/<em:maxVersion>9\.0\.\*<\/em:maxVersion>/' install.rdf
25   local dstdir=$pkgdir/usr/lib/firefox/extensions/${emid}
26   install -d $dstdir
27   mv * $dstdir
28   rm $dstdir/addon-3607-latest.xpi
29   chmod -R 755 $dstdir