updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / firefox-oldbar / PKGBUILD
blob8a31cafb879990d15f2f6a6e363c14cda31c6c17
1 # Maintainer: Alexander Fehr <pizzapunk gmail com>
3 pkgname=firefox-oldbar
4 pkgver=1.2
5 pkgrel=7
6 pkgdesc="Firefox extension that makes the location bar look like in Firefox 2"
7 arch=('any')
8 url="https://addons.mozilla.org/en-US/firefox/addon/6227"
9 license=('custom')
10 depends=('firefox')
11 source=(http://releases.mozilla.org/pub/mozilla.org/addons/6227/oldbar-$pkgver-fx.xpi)
12 md5sums=('a4d7037b8cc1aeee1d2ac60dbc224941')
14 package() {
15   cd "$srcdir"
17   emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)
19   install -d "$pkgdir"/usr/lib/firefox/extensions/$emid
20   cp -a * "$pkgdir"/usr/lib/firefox/extensions/$emid
22   rm -f "$pkgdir"/usr/lib/firefox/extensions/$emid/*.xpi
23   chmod -R -x+X "$pkgdir"/usr/lib/firefox/extensions/$emid
25   # Fix maximum supported version
26   sed -i 's|<em:maxVersion>3.0b4pre</em:maxVersion>|<em:maxVersion>11.*</em:maxVersion>|' \
27     "$pkgdir"/usr/lib/firefox/extensions/$emid/install.rdf