2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

pigz: get rid of zopfli and superfluous symlinks

This commit is contained in:
Dylan Araps 2021-07-18 07:13:20 +03:00
parent a3594a2e0b
commit 4c226fa3c0
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
4 changed files with 25 additions and 12 deletions

View File

@ -1,15 +1,17 @@
#!/bin/sh -e
#!/bin/sh -ef
make CC="${CC:-cc} -static"
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 \
"$1/usr/bin" \
"$1/usr/share/man/man1"
"$DESTDIR/usr/bin" \
"$DESTDIR/usr/share/man/man1"
cp -f pigz unpigz "$1/usr/bin"
cp -f pigz.1 "$1/usr/share/man/man1"
ln -sf pigz "$1/usr/bin/gzip"
ln -sf pigz "$1/usr/bin/zcat"
ln -sf unpigz "$1/usr/bin/gunzip"
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"
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"

1
core/pigz/depends Normal file
View File

@ -0,0 +1 @@
zlib make

10
core/pigz/post-install Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh -e
cat <<EOF
The commands zcat, unpigz and gunzip were merely symbolic
links to the pigz binary. They have been removed. To gain
them back, create the symlinks (or use an alias or shell
function).
EOF

View File

@ -1 +1 @@
2.6 1
2.6 2