Add ipkg option to specify installation directory
[hvlinux.git] / functions / ipkg
index 2fd39eb..428dabc 100644 (file)
@@ -80,7 +80,12 @@ hvconfig()
 hvbuild()
 {
     ${HVMAKE}
-    ${HVMAKE} install
+
+    if [ -n "${INSTALL_DIR}" ]; then
+        ${HVMAKE} DESTDIR=${INSTALL_DIR} install
+    else
+        ${HVMAKE} install
+    fi
 }
 
 # Default patch applying function