summaryrefslogtreecommitdiff
path: root/cmake/build.sh
blob: 93ee27fa50522d2e5cf6dfb3087459b9da56deab (plain) (blame)
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
#!/bin/bash
name=cmake
version=3.15.5
revision=0
sources=(
    "https://github.com/Kitware/CMake/releases/download/v${version}/${name}-${version}.tar.gz"
)
depends=(
    "curl"
)


function prepare() {
    tar xf ${name}-${version}.tar.gz
    cd ${name}-${version}
}

function build() {
    ./bootstrap --prefix="${_prefix}"
    make -j${_maxjobs}
}

function package() {
    make install DESTDIR="${_pkgdir}"
}