Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage3 / pkg / unzip
index 24295b2..4e4273d 100644 (file)
@@ -1,31 +1,15 @@
 #!/bin/sh
-set -o errexit
 
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-case "${HVL_TARGET}" in
-    "x86_64")
-        UNZIP_TARGET=linux_noasm
-        ;;
-    *)
-        UNZIP_TARGET=linux
-esac
-
-cd ${LFS_TMP}/${PACKAGE}
-make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET}
-make prefix=/usr install
-ldconfig
-
-exit $?
+hvbuild()
+{
+    case "${HVL_TARGET}" in
+        "x86_64")
+            UNZIP_TARGET=linux_noasm
+            ;;
+        *)
+            UNZIP_TARGET=linux
+    esac
+
+    make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET}
+    make prefix=/usr install
+}