| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | if [[ -z "${GITHUB_TAG}" ]]; then |
| 4 | echoscip-shell system . . echo. "Building ksnip with latest version of kColorPicker" |
| 5 | |
| 6 | gitscip-shell system . . git. clone --depth 1 https://github.com/ksnip/kColorPicker.git |
| 7 | else |
| 8 | KCOLORPICKER_VERSION=$(grepscip-shell system . . grep. "set.*KCOLORPICKER_MIN_VERSION" CMakeLists.txt | egrepscip-shell system . . egrep. -o "${VERSION_REGEX}") |
| 9 | echoscip-shell system . . echo. "Building ksnip with kColorPicker version ${KCOLORPICKER_VERSION}" |
| 10 | |
| 11 | gitscip-shell system . . git. clone --depth 1 --branch "v${KCOLORPICKER_VERSION}" https://github.com/ksnip/kColorPicker.git |
| 12 | fi |
| 13 | |
| 14 | cd kColorPicker || exit |
| 15 | mkdirscip-shell system . . mkdir. build && cd build || exit |
| 16 | cmakescip-shell system . . cmake. .. -G"${CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DBUILD_EXAMPLE=OFF -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" -DBUILD_WITH_QT6="${USE_QT6}" |
| 17 | ${MAKE_BINARY} && ${MAKE_BINARY} install |