2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 23:30:05 -07:00
repo/core/pigz/build

21 lines
599 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
2023-03-02 07:40:00 -07:00
for f in pigz.o yarn.o try.o; do
2023-08-21 17:21:08 -06:00
echo "$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
"$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
done
2023-08-21 17:21:08 -06:00
echo "$CC" -static -o pigz pigz.o yarn.o try.o $CPPFLAGS $CFLAGS -lz $LDFLAGS
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
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"