1 # Contributor: tuxspirit <tuxspiritATarchlinuxDOTfr>
6 pkgname=swiftweasel-intel-pgo-fr
10 pkgdesc="Mozilla Firefox optimized build for INTEL processors on x86 architecture (French version)."
12 url="http://swiftweasel.tuxfamily.org/"
13 license=('MPL' 'GPL' 'LGPL')
14 depends=('mozilla-common' 'desktop-file-utils' 'xulrunner>=1.9.1.5' 'nspr' 'libgnome' 'libxt' )
16 provides=('firefox' 'swiftweasel')
17 replaces=('swiftweasel-nocona-fr' 'swiftweasel-pentium-m-fr' 'swiftweasel-pentium-2-fr' 'swiftweasel-pentium-3-fr'
18 'swiftweasel-pentium-3m-fr' 'swiftweasel-pentium-4-fr' 'swiftwesel-pentium-4m-fr' 'swiftweasel-prescott-fr')
19 conflicts=('swiftweasel' 'swiftweasel3' 'swiftweasel-amd' 'swiftweasel-intel')
20 source=(http://download.tuxfamily.org/${_pkgname}/${_pkgname}-35/${pkgver}-tar.gz/${_pkgname}-${pkgver}_${_pkgproc}_${_pkgarch}.tar.gz
22 swiftweasel-safe.desktop
23 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/linux-i686/xpi/${_pkglang}.xpi)
25 md5sums=('a56ce9d7ff459ae2996e1dd8f97651da'
26 'e02fc1051ff31e05e45ec99eb38e16f6'
27 'eef46b6617fb0dab69037c122793c6fb'
28 'e3606f529881c4e2589102404e9a2270')
36 cp -r ${_pkgname} ${pkgdir}/opt/${_pkgname}
38 ## Fix error install.rdf
39 chmod -R 755 ${pkgdir}/opt/${_pkgname}/extensions/*
41 mkdir -p ${pkgdir}/usr/bin
42 ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
44 install -d -m755 ${pkgdir}/usr/share/{applications,pixmaps}
45 install -m644 -D ${srcdir}/swiftweasel/icons/mozicon128.png ${pkgdir}/usr/share/pixmaps/swiftweasel.png || return 1
46 install -m644 ${srcdir}/swiftweasel.desktop ${pkgdir}/usr/share/applications/ || return 1
47 install -m644 ${srcdir}/swiftweasel-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
50 unzip -o ${_pkglang}.xpi
51 sed -i "s|jar:chrome/${_pkglang}.jar|jar:${_pkglang}.jar|" chrome.manifest || return 1
52 install -D -m 644 chrome/${_pkglang}.jar ${pkgdir}/opt/${_pkgname}/chrome/${_pkglang}.jar || return 1
53 install -D -m 644 chrome.manifest ${pkgdir}/opt/${_pkgname}/chrome/${_pkglang}.manifest || return 1
54 rm ${pkgdir}/opt/${_pkgname}/chrome/en-US.jar
55 rm ${pkgdir}/opt/${_pkgname}/chrome/en-US.manifest
56 sed -i "s|en-US|${_pkglang}|" ${pkgdir}/opt/swiftweasel/defaults/pref/firefox-l10n.js || return 1