repo/extra/zip/build
2019-10-07 02:28:13 +03:00

7 lines
311 B
Bash
Executable File

#!/bin/sh -e
sed -e "s|generic CC=gcc CPP=\"gcc -E\"|zips CC=${CC:-gcc} CPP=\"$CPP -E\" CFLAGS=\"-DLARGE_FILE_SUPPORT $CFLAGS \${CFLAGS_NOOPT}\" LFLAGS2=\"$LDFLAGS\"|g" -i unix/Makefile
make -f unix/Makefile prefix=/usr generic_gcc
make prefix="$1/usr" MANDIR="$1/usr/share/man/man1" -f unix/Makefile install