mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-22 05:56:19 +00:00
21 lines
478 B
Bash
Executable File
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"
|