2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 15:20:06 -07:00
repo/extra/cmake/build

36 lines
717 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
2020-03-24 08:28:52 -06:00
export DESTDIR="$1"
2020-02-14 09:25:52 -07:00
2019-11-16 18:19:20 -07:00
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
make DESTDIR="$1" install
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"