source: scripts/untested/blfs-scripts/blfs-unzip.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.3 KB
Line 
1#!/bin/bash
2#
3# unzip
4#
5# Dependencies: None
6#
7
8cd ${SRC}
9LOG=blfs-unzip.log
10
11set_libdirname
12setup_multiarch
13
14unpack_tarball unzip${UNZIP_VER} &&
15cd ${PKGDIR}
16
17case ${UNZIP_VER} in
18   551 | 552 )
19      apply_patch unzip-5.51-fix_Makefile-1
20      apply_patch unzip-5.51-fix_libz-1
21      apply_patch unzip-5.51-dont_make_noise-1
22   ;;
23   * )
24      echo "*** Please check if unzip ${UNZIP_VER} requires patching ***"
25      echo "*** then please update this script (and send patch)      ***"
26      exit 1
27   ;;
28esac
29
30cp unix/Makefile .
31
32max_log_init unzip ${UNZIP_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
33
34case ${TARGET} in
35   i?86* )
36      make ${PMFLAGS} CC="${CC-gcc} ${ARCH_CFLAGS}" \
37           prefix=/usr LOCAL_UNZIP="-DUSE_UNSHRINK" linux \
38         >> ${LOGFILE} 2>&1 &&
39      make ${PMFLAGS} CC="${CC-gcc} ${ARCH_CFLAGS}" \
40           prefix=/usr LOCAL_UNZIP="-DUSE_UNSHRINK" linux_shlibz \
41         >> ${LOGFILE} 2>&1 &&
42      echo " o Build OK" || barf
43   ;;
44   * )
45      make ${PMFLAGS} CC="${CC-gcc} ${ARCH_CFLAGS}" \
46           prefix=/usr LOCAL_UNZIP="-DUSE_UNSHRINK" linux_noasm \
47         >> ${LOGFILE} 2>&1 &&
48      echo " o Build OK" || barf
49   ;;
50esac
51
52min_log_init ${INSTLOGS} &&
53make prefix=/usr LOCAL_UNZIP="-DUSE_UNSHRINK" install \
54   >> ${LOGFILE} 2>&1 &&
55echo " o ALL OK" || barf
56
Note: See TracBrowser for help on using the repository browser.