repo/core/pigz/build
2023-03-05 17:34:06 -06:00

19 lines
438 B
Bash
Executable File

#!/bin/sh -ef
#
# Intentional, globbing disabled.
# shellcheck disable=2086
for f in pigz.o yarn.o try.o; do
"$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
done
"$CC" -static -o pigz "$@" $CPPFLAGS $CFLAGS -lz $LDFLAGS
mkdir -p \
"$1/usr/bin" \
"$1/usr/share/man/man1"
cp -f pigz "$1/usr/bin"
ln -sf pigz "$1/usr/bin/gzip"
cp -f pigz.1 "$1/usr/share/man/man1"
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"