2006-02-15 03:53:01 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
postInstall=postInstall
|
|
|
|
postInstall() {
|
|
|
|
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.
|
2006-02-15 13:37:28 +01:00
|
|
|
libDir=$(cd $out/lib && ls -d xulrunner-*)
|
2006-02-15 10:33:54 +01:00
|
|
|
test -n "$libDir"
|
2006-02-15 03:53:01 +01:00
|
|
|
cd $out/bin
|
2006-02-15 10:33:54 +01:00
|
|
|
mv xulrunner ../lib/$libDir/
|
|
|
|
ln -s ../lib/$libDir/xulrunner .
|
2006-02-15 03:53:01 +01:00
|
|
|
|
|
|
|
echo "running xulrunner --register-global..."
|
|
|
|
$out/bin/xulrunner --register-global || true
|
|
|
|
|
|
|
|
# xulrunner wants to create these directories at the first startup
|
2006-02-15 10:33:54 +01:00
|
|
|
ensureDir $out/lib/$libDir/extensions
|
|
|
|
ensureDir $out/lib/$libDir/updates
|
2006-02-15 03:53:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|