repo/core/bzip2/build

17 lines
469 B
Plaintext
Raw Normal View History

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
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" bzip2recover libbz2.a
2020-04-22 22:39:08 -06:00
make PREFIX="$1/usr" install
2019-08-03 00:28:19 -06:00
2020-04-22 22:39:08 -06:00
# Fix nonsensical man page handling.
mkdir -p "$1/usr/share"
mv -f "$1/usr/man" "$1/usr/share/man"
2019-08-03 00:28:19 -06:00
2020-04-22 22:39:08 -06:00
# Install the shared library.
2019-08-03 00:28:19 -06:00
install -Dm755 libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0.8"
2019-09-16 04:00:38 -06:00
for lib in libbz2.so libbz2.so.1 libbz2.so.1.0; do
ln -sf libbz2.so.1.0.8 "$1/usr/lib/$lib"
done