1 # Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
2 # Based on PKGBUILD firefox-extension-video-downloadhelper
4 _plugin_name=nagioschecker
6 pkgdesc="Plugin for firefox, statusbar indicator of the events from the network monitoring system Nagios."
9 pkgname=firefox-extension-$_plugin_name
10 pkgver=$_plugin_version
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')
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}
28 rm $dstdir/addon-3607-latest.xpi