mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 07:10:16 -07:00
bzip2: remove usage of install
This commit is contained in:
parent
9e7f1ef669
commit
ef5d6ca8a9
@ -1,20 +1,31 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
|
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
|
||||||
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" bzip2recover libbz2.a
|
make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2
|
||||||
|
|
||||||
for bin in bzip2-shared bzdiff bzgrep bzip2recover bzmore; do
|
mkdir -p \
|
||||||
install -Dm755 "$bin" "$1/usr/bin/${bin%%-shared}"
|
"$1/usr/bin" \
|
||||||
done
|
"$1/usr/lib" \
|
||||||
|
"$1/usr/share/man/man1" \
|
||||||
|
"$1/usr/include"
|
||||||
|
|
||||||
install -Dm755 libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0.8"
|
cp -f \
|
||||||
install -Dm644 libbz2.a "$1/usr/lib/libbz2.a"
|
bzip2 \
|
||||||
install -Dm644 bzip2.1 "$1/usr/share/man/man1/bzip2.1"
|
bzdiff \
|
||||||
install -Dm644 bzlib.h "$1/usr/include/bzlib.h"
|
bzgrep \
|
||||||
|
bzmore \
|
||||||
|
"$1/usr/bin"
|
||||||
|
|
||||||
for lib in libbz2.so libbz2.so.1 libbz2.so.1.0; do
|
cp -f \
|
||||||
ln -sf libbz2.so.1.0.8 "$1/usr/lib/$lib"
|
libbz2.so.1.0.8 \
|
||||||
done
|
libbz2.a \
|
||||||
|
"$1/usr/lib"
|
||||||
|
|
||||||
|
cp -f bzip2.1 "$1/usr/share/man/man1"
|
||||||
|
cp -f bzlib.h "$1/usr/include"
|
||||||
|
|
||||||
|
ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so"
|
||||||
|
ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1"
|
||||||
|
ln -sf libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0"
|
||||||
ln -sf bzip2 "$1/usr/bin/bunzip2"
|
ln -sf bzip2 "$1/usr/bin/bunzip2"
|
||||||
ln -sf bzip2 "$1/usr/bin/bzcat"
|
ln -sf bzip2 "$1/usr/bin/bzcat"
|
||||||
|
Loading…
Reference in New Issue
Block a user