2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2005-09-09 17:44:15 +02:00
|
|
|
|
|
|
|
postInstall=postInstall
|
|
|
|
postInstall() {
|
|
|
|
|
|
|
|
# Strip some more stuff
|
|
|
|
strip -S $out/lib/*/* || true
|
|
|
|
|
|
|
|
# This fixes starting Firefox when there already is a running
|
|
|
|
# instance. The `firefox' wrapper script actually expects to be
|
|
|
|
# in the same directory as `run-mozilla.sh', apparently.
|
|
|
|
cd $out/bin
|
|
|
|
mv firefox ../lib/firefox-*/
|
|
|
|
ln -s ../lib/firefox-*/firefox .
|
|
|
|
|
2006-02-15 18:04:11 +01:00
|
|
|
# Register extensions etc.
|
2005-09-09 17:44:15 +02:00
|
|
|
echo "running firefox -register..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
|
|
|
|
|
|
|
echo "running regxpcom..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regxpcom) || false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|