--- scripts/pkg/private/build.m.orig	2016-11-19 11:18:17.000000000 -0700
+++ scripts/pkg/private/build.m	2016-11-20 04:30:48.000000000 -0700
@@ -61,6 +61,9 @@
 
     desc = get_description (desc_path);
 
+    ## Set default installation directory.
+    desc.dir = fullfile (builddir, desc.name);
+
     ## If there is no configure or Makefile within src/, there is nothing
     ## to do to prepare a "binary" package.  We only repackage to add more
     ## info to the tarball filename (version and arch).
