nixpkgs/pkgs/applications/networking/browsers/opera/builder.sh
Eelco Dolstra 26f98860c1 * Opera 8.51 (on Linux).
svn path=/nixpkgs/trunk/; revision=4782
2006-02-10 12:15:04 +00:00

34 lines
805 B
Bash

source $stdenv/setup
buildPhase=buildPhase
buildPhase() {
true
}
installPhase=installPhase
installPhase() {
# 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
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
rpath=/no-such-path
for i in $libPath; do
rpath="$rpath:$i/lib"
done
# !!! ugh, should fix this eventually; just make a normal gcc dependency
gcc=$(cat $NIX_GCC/nix-support/orig-gcc)
rpath="$rpath:$gcc/lib"
for i in $out/lib/opera/*/opera $out/lib/opera/plugins/opera*; do
patchelf \
--set-interpreter "$glibc/lib/ld-linux.so.2" \
--set-rpath "$rpath" \
"$i"
done
}
genericBuild