mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-16 03:30:23 -07:00
32 lines
658 B
Bash
Executable File
32 lines
658 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
|
|
make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2
|
|
|
|
mkdir -p \
|
|
"$1/usr/bin" \
|
|
"$1/usr/lib" \
|
|
"$1/usr/share/man/man1" \
|
|
"$1/usr/include"
|
|
|
|
cp -f \
|
|
bzip2 \
|
|
bzdiff \
|
|
bzgrep \
|
|
bzmore \
|
|
"$1/usr/bin"
|
|
|
|
cp -f \
|
|
libbz2.so.1.0.8 \
|
|
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/bzcat"
|