forked from kiss-community/repo
pigz: get rid of zopfli and superfluous symlinks
This commit is contained in:
parent
a3594a2e0b
commit
4c226fa3c0
@ -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
1
core/pigz/depends
Normal file
@ -0,0 +1 @@
|
||||
zlib make
|
10
core/pigz/post-install
Executable file
10
core/pigz/post-install
Executable 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
|
@ -1 +1 @@
|
||||
2.6 1
|
||||
2.6 2
|
||||
|
Loading…
Reference in New Issue
Block a user