2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 03:30:23 -07:00
repo/core/pigz/build
2021-07-18 07:31:45 +03:00

21 lines
478 B
Bash
Executable File

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