1 # Maintainer: Luca Viola <lukeluke1979@gmail.com>
9 pkgname=${_pkgname}-intel32-pgo-${_pkglang}-lns
10 pkgdesc="Mozilla Firefox optimized (Arch Linux) build for Intel 32-bit processors (Italian version), with ln -s /usr/bin/swiftweasel /usr/bin/firefox acting as a true firefox replacement"
12 url="http://swiftweasel.tuxfamily.org"
13 license=('MPL' 'GPL' 'LGPL')
14 depends=('mozilla-common' 'desktop-file-utils' 'xulrunner>=1.9' 'nss')
16 provides=('firefox=3.5.5' 'swiftweasel')
17 replaces=('swiftweasel-athlon-xp' 'swiftweasel-athlon-tbird' 'swiftweasel-athlon64'
18 'swiftweasel-k6' 'swiftweasel-k8')
19 conflicts=('swiftweasel' 'swiftweasel3' 'swiftweasel-amd' 'swiftweasel-intel' 'firefox')
20 install=swiftweasel.install
21 source=(http://download.tuxfamily.org/swiftweasel/swiftweasel-35/${pkgver}-tar.gz/${_pkgname}-${pkgver}_${_pkgproc}_${_pkgarch}.tar.gz
23 swiftweasel-safe.desktop
24 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/linux-i686/xpi/${_pkglang}.xpi)
25 md5sums=('a56ce9d7ff459ae2996e1dd8f97651da'
26 'e02fc1051ff31e05e45ec99eb38e16f6'
27 'eef46b6617fb0dab69037c122793c6fb'
28 'cd71c0f3723da0c9f4ea293ac8e68baa')
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