2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/extra/plzip/build
2021-07-18 06:06:20 +03:00

23 lines
540 B
Bash
Executable File

#!/bin/sh -e
# plzip is the only thing that will ever require
# this library. Let's simply build it and statically
# compile plzip.
(cd lzlib; ./configure; make)
# Fix build in libc++ environment.
case $("${CC:-cc}" -print-file-name=libc++.a) in */*)
CXXFLAGS="$CXXFLAGS -lunwind -lc++abi"
esac
./configure \
--prefix=/usr \
CXXFLAGS="$CXXFLAGS -static -L$PWD/lzlib -I$PWD/lzlib"
make
make install
# Create the symlink for compatibility. We're using
# a multi-threaded implementation of lzip.
ln -s plzip "$1/usr/bin/lzip"