2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/core/pigz/build

19 lines
453 B
Plaintext
Raw Normal View History

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