updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / swiftweasel-intel-pgo-fr / PKGBUILD
blob0d7d82d644ddeaa3e39c524db36b9b5827882ff0
1 # Contributor: tuxspirit <tuxspiritATarchlinuxDOTfr>
3 _pkgname=swiftweasel
4 _pkgproc=intel-pgo
5 _pkglang=fr
6 pkgname=swiftweasel-intel-pgo-fr
7 _pkgarch=x86-arch
8 pkgver=3.5.6
9 pkgrel=1
10 pkgdesc="Mozilla Firefox optimized build for INTEL processors on x86 architecture (French version)."
11 arch=('i686')
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' )
15 makedepends=('unzip')
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
21         swiftweasel.desktop
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')
29            
30 build() {
32   # Software
33   cd ${srcdir}/
35   mkdir ${pkgdir}/opt/
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 
49   # Translate
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