summaryrefslogtreecommitdiffstats
path: root/core/modules/slxbrowser/module.build
blob: e1b700918ba689f5eea950efcf09c49e9b5827f2 (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/"

	mkdir -p "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}"
	cd "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" || perror "No dir"

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

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

	cd - > /dev/null
}

post_copy() {
	:
}