source: scripts_home/scripts/untested/blfs-scripts/blfs-ncompress.sh@ 1c9c5c3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 879 bytes
Line 
1#!/bin/bash
2#
3# ncompress
4#
5
6cd ${SRC}
7LOG=blfs-ncompress.log
8
9set_libdirname
10setup_multiarch
11
12unpack_tarball ncompress-${NCOMPRESS_VER} &&
13cd ${PKGDIR}
14
15case ${NCOMPRESS_VER} in
16 4.2.4 )
17 apply_patch ncompress-4.2.4-gcc34
18 apply_patch ncompress_4.2.4-15
19 ;;
20 * )
21 echo "*** Please check if ncompress ${NCOMPRESS_VER} requires patching ***"
22 echo "*** then please update this script (and send patch) ***"
23 exit 1
24 ;;
25esac
26
27max_log_init ncompress ${NCOMPRESS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
28
29sed -e "s@options= @options= -O3 ${TGT_CFLAGS} @" \
30 -e "s@CC=cc@CC=${CC-gcc} ${ARCH_CFLAGS}@" \
31 Makefile.def > Makefile
32
33make \
34 >> ${LOGFILE} 2>&1 &&
35echo " o Build OK" || barf
36
37if [ -f /usr/bin/compress ]; then rm -f /usr/bin/compress ; fi
38rm -f /usr/bin/uncompress
39cp compress /usr/bin/compress
40ln -sf compress /usr/bin/uncompress
41
Note: See TracBrowser for help on using the repository browser.