2021-07-17 22:13:20 -06:00
|
|
|
#!/bin/sh -ef
|
2021-07-17 22:31:45 -06:00
|
|
|
#
|
|
|
|
# Intentional, globbing disabled.
|
|
|
|
# shellcheck disable=2086
|
2021-07-15 03:44:57 -06:00
|
|
|
|
2023-03-02 07:40:00 -07:00
|
|
|
for f in pigz.o yarn.o try.o; do
|
2021-07-17 22:13:20 -06:00
|
|
|
"$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
|
|
|
|
done
|
2023-03-21 19:39:25 -06:00
|
|
|
"$CC" -static -o pigz pigz.o yarn.o try.o $CPPFLAGS $CFLAGS -lz $LDFLAGS
|
2021-07-15 03:44:57 -06:00
|
|
|
|
2021-07-17 22:13:20 -06:00
|
|
|
mkdir -p \
|
2023-03-02 07:40:00 -07:00
|
|
|
"$1/usr/bin" \
|
|
|
|
"$1/usr/share/man/man1"
|
2021-07-15 03:44:57 -06:00
|
|
|
|
2023-03-02 07:40:00 -07:00
|
|
|
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"
|