mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 15:20:06 -07:00
34 lines
675 B
Bash
Executable File
34 lines
675 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < cmake-no-execinfo.patch
|
|
|
|
if kiss l cmake; then
|
|
export DESTDIR="$1"
|
|
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_USE_SYSTEM_CURL=True \
|
|
-DCMAKE_USE_SYSTEM_EXPAT=True \
|
|
-DCMAKE_USE_SYSTEM_ZLIB=True \
|
|
-DCMAKE_USE_SYSTEM_BZIP2=True \
|
|
-DBUILD_TESTING=OFF
|
|
|
|
cmake --build build
|
|
cmake --install build
|
|
|
|
else
|
|
./configure \
|
|
--prefix=/usr \
|
|
--system-curl \
|
|
--system-expat \
|
|
--system-zlib \
|
|
--system-bzip2
|
|
|
|
make
|
|
make DESTDIR="$1" install
|
|
fi
|
|
|
|
rm -rf "$1/usr/doc"
|
|
rm -rf "$1/usr/share/cmake"*/Help
|