summaryrefslogtreecommitdiff
path: root/templates/cmake/template
blob: 64c721714e5e52fea595ca49b022b0e9d86b31ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=cmake
version=4.3.3
build_no=1
upstream="https://gitlab.kitware.com/cmake/cmake/-/archive/v${version}/cmake-v${version}.tar.gz?ref_type=tags"
cddir=${pkgname}-v${version}

function do_configure {
	export CXX=/usr/bin/g++

	conf_flags=(
		--prefix=/usr
	)

	CXX="/usr/bin/g++" CXXFLAGS="-std=c++11" ./bootstrap 
}

function do_build {
	make -j$(nproc)
}

function do_install {
	make DESTDIR=${DESTDIR} install
}