2006-02-10 13:15:04 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
2009-09-02 15:24:08 +02:00
|
|
|
substituteInPlace install.sh --replace /bin/pwd pwd
|
|
|
|
|
2006-02-10 13:15:04 +01:00
|
|
|
# Note: the "no" is because the install scripts asks whether we
|
|
|
|
# want to install icons in some system-wide directories.
|
|
|
|
echo no | ./install.sh --prefix=$out
|
|
|
|
|
2007-11-28 03:10:27 +01:00
|
|
|
[ -z ${system##*64*} ] && suf=64
|
|
|
|
|
2009-09-10 18:57:45 +02:00
|
|
|
find $out -type f | while read f; do
|
|
|
|
echo testing "$f"
|
|
|
|
# patch all executables
|
|
|
|
if readelf -h "$f" | grep 'EXEC (Executable file)' &> /dev/null; then
|
|
|
|
echo "patching $f <<"
|
2006-02-10 13:15:04 +01:00
|
|
|
patchelf \
|
2006-10-27 14:43:32 +02:00
|
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2009-09-02 15:24:08 +02:00
|
|
|
--set-rpath "$libPath" \
|
2009-09-10 18:57:45 +02:00
|
|
|
"$f"
|
|
|
|
fi
|
2006-02-10 13:15:04 +01:00
|
|
|
done
|
2009-09-02 15:24:08 +02:00
|
|
|
|
|
|
|
# Substitute pwd as late as possible so that the md5 checksum check of opera passes.
|
|
|
|
substituteInPlace $out/bin/opera --replace /bin/pwd pwd
|
2009-05-13 16:47:10 +02:00
|
|
|
|
|
|
|
ensureDir $out/share/applications
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
2006-02-10 13:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|