X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Funzip;h=4e4273db9c279c129bc2704cf40dfa28f6493297;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=24295b282037214416cdb6f29598e98e20f6c139;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/unzip b/stage3/pkg/unzip index 24295b2..4e4273d 100644 --- a/stage3/pkg/unzip +++ b/stage3/pkg/unzip @@ -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 +}