Monday, November 2, 2009

Yet antoher firefox logo problem solving

firefox original logo


Most of linux users prefer Archlinux because of the rollover package-magament system or it' s clean and fast. It is my favourite distro, too. But there are some issues that must be handled, such as firefox branding.

After Mozilla Foundation  has registered firefox and thunderbird as their trademark, most of linux distros put this softwares with a different name and logo. In archlinux if you want to use firefox with the original name and logo there is two way for you:

manual way:
This is very easy as you go and download the executables. You can make a secret folder in your home folder such as .apps, and make a shortcut to desktop. It is quiet easy.

compiling way:
First I assume that you install abs (arch build system). Then, copy the firefox build directory to any directory to your home. I think you may be tidy.
[user@localhost ~]$cp /var/abs/extra/firefox /home/abs/extra/
 Now we need to change some lines in these files. Look at the mozconfig file, and find the line:
ac_add_options --with-branding=browser/branding/unofficial
and change it to:
ac_add_options --enable-official-branding
then have md5sum of file:
[user@localhost ~]$md5sum mozconfig
d672df11a6e16a5dec68428b00bfb810 mozconfig
 
add the md5sum to the PKGBUILD file like this:

source=(
        http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
        mozconfig
        firefox.desktop
        firefox-safe.desktop
        mozilla-firefox-1.0-lang.patch
        browser-defaulturls.patch
        firefox-version.patch)
md5sums=('ca167e69180ab1230aea0763da270a95'
         'd672df11a6e16a5dec68428b00bfb810'
         '68cf02788491c6e846729b2f2913bf79'
         '5e68cabfcf3c021806b326f664ac505e'
         'bd5db57c23c72a02a489592644f18995'
         '346d74ec560e7bbf453c02ff21f4b868'
         '1dd9a10df0b9e4cf332eadc326d78e07')
after these small editing things you can command:
[user@localhost ~]$makepkg -ci
If installation has any make or usage depends, you can easily install them with pacman as a regular way.
After installation you will have the original name and logo of the firefox.

No comments:

Post a Comment