1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
2 pkgname=firefox-oxygen-kde
5 pkgdesc="Complete add-on/theme bringing the Oxygen style for Firefox."
7 depends=("firefox>=8.0")
9 url="http://oxygenkde.altervista.org/index.html"
11 source=("http://oxygenkde.altervista.org/download/OxygenKDE_${pkgver//./_}.xpi")
12 md5sums=('cdb592e61aaa7368346ab7e231f2f2c8')
21 for f in "oxykde_opt${pkgver//.}" "oxykde_theme${pkgver//.}"; do
22 unzip -o -d "${f}" "${f}.xpi"
23 emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' "${f}/install.rdf")
24 #sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>10.*</em:maxVersion>#' "${f}/install.rdf"
25 dstdir="${pkgdir}/usr/lib/firefox/extensions/${emid}"
26 install -d "${dstdir}"
28 find . -type f -exec install -Dm644 '{}' "${dstdir}/{}" \;