summaryrefslogtreecommitdiffstats
path: root/core/modules/speedcheck/module.build
blob: 6c7bd807a116d00093251d21089528a00faca4d7 (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
#!/bin/bash

fetch_source() {
	git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src"
}

build() {
	local SRCDIR="${MODULE_WORK_DIR}/src/"

	[ ! -d "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" ] && mkdir -p "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}"
	cd "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}"

	pinfo "Running cmake"
	# use qt4-dev (in case eg. qt4 and 5 are installed)
	activate_qt 4

	cmake "$SRCDIR" || perror "'cmake $SRCDIR' failed."
	make || perror "'make' failed."

	cd - > /dev/null
}

post_copy() {
	:
}