2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 03:00:10 -07:00
repo/core/pigz/build
2023-03-22 01:39:25 +00:00

19 lines
453 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 pigz.o yarn.o try.o $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"