summaryrefslogtreecommitdiff
path: root/Ports/cmake/package.sh
blob: 0b971bd2eb2e77bafcab9fcc81e81f9983f4a73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env -S bash ../.port_include.sh
port=cmake
version=3.19.4
useconfigure=false
files="https://github.com/Kitware/CMake/releases/download/v$version/cmake-$version.tar.gz cmake-$version.tar.gz"
depends="bash gcc make sed"

port_path=$(realpath $(dirname ${BASH_SOURCE[0]}))

build() {
    return
}

install() {
    cmake_dir="${SERENITY_BUILD_DIR}/Root/home/anon/Source/cmake"
    run rm -rf "$cmake_dir"
    run mkdir -p "$cmake_dir"
    run cp -r . "$cmake_dir"
}

post_install() {
    echo +===================================================================
    echo "| Successfully prepared the sources for cmake v$version!"
    echo "| The other half of the install has to be done inside serenity"
    echo "| to continue, re-image and run the vm, then do the following:"
    echo '| '
    echo '| $ cd Source/cmake'
    echo '| $ ./bootstrap'
    echo '| $ make && make install'
    echo '| '
    echo "| (These instructions are also available in $port_path/howto.md)"
    echo +===================================================================
}