updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / firefox-oxygen-kde / PKGBUILD
blob36e17ca3a7162ecc0e0aa366b984413df83cabf2
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
2 pkgname=firefox-oxygen-kde
3 pkgver=3.6.1
4 pkgrel=1
5 pkgdesc="Complete add-on/theme bringing the Oxygen style for Firefox."
6 arch=(any)
7 depends=("firefox>=8.0")
8 makedepends=("unzip")
9 url="http://oxygenkde.altervista.org/index.html"
10 license=('GPL')
11 source=("http://oxygenkde.altervista.org/download/OxygenKDE_${pkgver//./_}.xpi")
12 md5sums=('cdb592e61aaa7368346ab7e231f2f2c8')
14 package() {
15   local f
16   local emid
17   local destdir
19   cd "${srcdir}"
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}"
27     pushd "${f}"
28     find . -type f -exec install -Dm644 '{}' "${dstdir}/{}" \;
29     popd
30   done