Firefox : “Enable Official Branding” Script
B-Con posted a thread on the Arch Linux forums asking which Arch packages users rebuild. Firefox comes up a few times because users rebuild it for official branding. Allan then posted a link to a nifty script to automatically rebuild Firefox with official branding. I’ll post it here as well and hope that WordPress won’t mess it up.
#!/bin/bash
sudo absif [[ ! -d /var/abs/local/firefox ]]
then
mkdir /var/abs/local/firefox
fi
cd /var/abs/local/firefox
rm -rf *
cp /var/abs/extra/network/firefox/* .
OLDMD5=`md5sum mozconfig | cut -d' ' -f1`
echo ac_add_options --enable-official-branding >> mozconfig
NEWMD5=`md5sum mozconfig | cut -d' ' -f1`
sed -i "s#$OLDMD5#$NEWMD5#" PKGBUILD
sed -i "s#browser/app#dist/branding#g" PKGBUILD
makepkg
PKGVER=`grep "pkgver=" PKGBUILD | cut -d'=' -f 2`
PKGREL=`grep "pkgrel=" PKGBUILD | cut -d'=' -f 2`
sudo pacman -U firefox-$PKGVER-$PKGREL-i686.pkg.tar.gz