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

18 lines
416 B
Bash
Executable File

#!/bin/sh -ef
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"