2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/cmake/build
illiliti 3dfa85bab9
Stop using kiss within build scripts (#50)
* mesa: use pkg-config instead of kiss l

* gcc: use gcc -dumpversion instead of reading version from kiss database

* cmake: use command -v instead of kiss l
2022-03-28 09:35:47 +00:00

34 lines
694 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < cmake-no-execinfo.patch
if command -v cmake >/dev/null; then
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 install
fi
rm -rf \
"$1/usr/doc" \
"$1/usr/share/cmake"*/Help \
"$1/usr/share/bash-completion"