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

37 lines
828 B
Plaintext
Raw Normal View History

2019-06-27 06:45:20 -06:00
#!/bin/sh -e
if command -v cmake >/dev/null; then
2023-03-02 07:40:00 -07:00
export DESTDIR="$1"
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 \
2022-09-07 13:08:45 -06:00
-DBUILD_CursesDialog=OFF \
2019-11-26 14:51:21 -07:00
-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 \
2022-09-07 13:08:45 -06:00
--system-bzip2 \
--parallel="$(grep -scF 'core id' /proc/cpuinfo)" -- \
-DBUILD_CursesDialog=OFF
2019-11-16 18:19:20 -07:00
make
2023-03-02 07:40:00 -07:00
make DESTDIR="$1" 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"