2019-09-16 04:00:38 -06:00
|
|
|
#!/bin/sh -e
|
2019-08-03 00:28:19 -06:00
|
|
|
|
2020-02-11 23:49:26 -07:00
|
|
|
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
|
2021-07-01 10:12:35 -06:00
|
|
|
make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2
|
2019-08-03 00:28:19 -06:00
|
|
|
|
2021-07-01 10:12:35 -06:00
|
|
|
mkdir -p \
|
|
|
|
"$1/usr/bin" \
|
|
|
|
"$1/usr/lib" \
|
|
|
|
"$1/usr/share/man/man1" \
|
|
|
|
"$1/usr/include"
|
2019-08-03 00:28:19 -06:00
|
|
|
|
2021-07-01 10:12:35 -06:00
|
|
|
cp -f \
|
|
|
|
bzip2 \
|
|
|
|
bzdiff \
|
|
|
|
bzgrep \
|
|
|
|
bzmore \
|
|
|
|
"$1/usr/bin"
|
2019-08-03 00:28:19 -06:00
|
|
|
|
2021-07-01 10:12:35 -06:00
|
|
|
cp -f \
|
|
|
|
libbz2.so.1.0.8 \
|
|
|
|
libbz2.a \
|
|
|
|
"$1/usr/lib"
|
2020-04-27 01:38:26 -06:00
|
|
|
|
2021-07-01 10:12:35 -06:00
|
|
|
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"
|
2020-04-27 01:38:26 -06:00
|
|
|
ln -sf bzip2 "$1/usr/bin/bunzip2"
|
|
|
|
ln -sf bzip2 "$1/usr/bin/bzcat"
|