2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 03:30:23 -07:00
repo/extra/cmake/build

34 lines
679 B
Plaintext
Raw Normal View History

2019-06-27 06:45:20 -06:00
#!/bin/sh -e
patch -p1 < cmake-no-execinfo.patch
2019-11-16 18:19:20 -07:00
if kiss l cmake; then
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-11-16 18:38:48 -07:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_USE_SYSTEM_CURL=True \
-DCMAKE_USE_SYSTEM_EXPAT=True \
-DCMAKE_USE_SYSTEM_ZLIB=True \
2019-11-26 14:51:21 -07:00
-DCMAKE_USE_SYSTEM_BZIP2=True \
-DBUILD_TESTING=OFF
2019-06-27 06:45:20 -06:00
2019-11-16 18:19:20 -07:00
cmake --build build
2020-02-14 09:25:52 -07:00
cmake --install build
2019-11-16 18:19:20 -07:00
else
./configure \
2019-11-16 18:38:48 -07:00
--prefix=/usr \
--system-curl \
--system-expat \
--system-zlib \
2020-02-14 09:25:52 -07:00
--system-bzip2
2019-11-16 18:19:20 -07:00
make
2021-07-17 22:18:45 -06:00
make install
2019-11-16 18:19:20 -07:00
fi
2019-08-18 18:33:32 -06:00
2021-07-06 07:10:51 -06:00
rm -rf \
"$1/usr/doc" \
"$1/usr/share/cmake"*/Help \
"$1/usr/share/bash-completion"