summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/opera/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/browsers/opera/builder.sh')
-rw-r--r--pkgs/applications/networking/browsers/opera/builder.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/opera/builder.sh b/pkgs/applications/networking/browsers/opera/builder.sh
index 66a3388bc88d..de4a413e4ac8 100644
--- a/pkgs/applications/networking/browsers/opera/builder.sh
+++ b/pkgs/applications/networking/browsers/opera/builder.sh
@@ -5,11 +5,15 @@ buildPhase() {
 }
 
 installPhase() {
-    substituteInPlace install.sh --replace /bin/pwd pwd
+    substituteInPlace install --replace /bin/pwd pwd
+    substituteInPlace install --replace /usr/local "$out"
     
     # 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
+    
+    ensureDir "$out"
+
+    ./install --text --system
 
     [ -z ${system##*64*} ] && suf=64