2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 19:20:10 -07:00
repo/core/pigz/build

21 lines
478 B
Plaintext
Raw Normal View History

#!/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
set -- pigz.o yarn.o try.o
2021-07-15 03:44:57 -06:00
for f do
"$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
done
"$CC" -static -o pigz "$@" $CPPFLAGS $CFLAGS -lz $LDFLAGS
2021-07-15 03:44:57 -06:00
mkdir -p \
"$DESTDIR/usr/bin" \
"$DESTDIR/usr/share/man/man1"
2021-07-15 03:44:57 -06:00
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"