1 # Contributor: mightyjaym <jm.ambrosino@free.fr>
3 pkgname=swiftweasel-athlon64-de
10 pkgdesc="Mozilla Firefox optimized build for AMD 64bit processors. German version."
11 arch=('i686' 'x86_64')
12 url="http://swiftweasel.sourceforge.net/"
13 license=('MPL' 'GPL' 'LGPL')
14 depends=('mozilla-common' 'desktop-file-utils' 'xulrunner')
15 provides=('firefox' 'swiftweasel')
16 conflicts=('swiftweasel' 'swiftweasel3')
18 if [ "$CARCH" = "x86_64" ]; then
20 md5sums=('310b9e034c04788d67e0802b02cd747a' 'e02fc1051ff31e05e45ec99eb38e16f6' 'eef46b6617fb0dab69037c122793c6fb' '635d3d7ab3d00d216cb536597da10811')
23 md5sums=('17822be8385292140ecab0f6978fbad3' 'e02fc1051ff31e05e45ec99eb38e16f6' 'eef46b6617fb0dab69037c122793c6fb' '8f69a6704b1ef174ed2ac02f5d6ef4bb')
26 source=(http://downloads.sourceforge.net/swiftweasel/swiftweasel-${pkgver}_${_pkgdate}_${_pkgproc}-${_nbits}.tar.gz
28 swiftweasel-safe.desktop
29 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/linux-i686/xpi/${_lang}.xpi)
34 mkdir $startdir/pkg/opt/
35 cp -r ${_pkgname} $startdir/pkg/opt/${_pkgname}
36 chmod -R 775 $startdir/pkg/opt/${_pkgname}/extensions/*
37 mkdir -p $startdir/pkg/usr/bin
38 ln -s /opt/${_pkgname}/${_pkgname} $startdir/pkg/usr/bin/${_pkgname}
39 rm $startdir/pkg/opt/${_pkgname}/libxul.so
40 ln -sf /usr/lib/xulrunner/libxul.so $startdir/pkg/opt/${_pkgname}/libxul.so
42 install -d -m755 $startdir/pkg/usr/share/{applications,pixmaps}
44 install -m644 -D $startdir/src/swiftweasel/icons/mozicon128.png $startdir/pkg/usr/share/pixmaps/swiftweasel.png || return 1
45 install -m644 $startdir/src/swiftweasel.desktop $startdir/pkg/usr/share/applications/ || return 1
46 install -m644 $startdir/src/swiftweasel-safe.desktop $startdir/pkg/usr/share/applications/ || return 1
50 sed -i "s|jar:chrome/${_lang}.jar|jar:${_lang}.jar|" chrome.manifest || return 1
51 install -D -m 644 chrome/${_lang}.jar ${startdir}/pkg/opt/${_pkgname}/chrome/${_lang}.jar || return 1
52 install -D -m 644 chrome.manifest ${startdir}/pkg/opt/${_pkgname}/chrome/${_lang}.manifest || return 1
53 rm ${startdir}/pkg/opt/${_pkgname}/chrome/en-US.jar
54 rm ${startdir}/pkg/opt/${_pkgname}/chrome/en-US.manifest
55 sed -i "s|en-US|${_lang}|" ${startdir}/pkg/opt/swiftweasel/defaults/pref/firefox-l10n.js || return 1