summaryrefslogblamecommitdiffstats
path: root/core/modules/slxbrowser/module.build
blob: 32ca44c8a8774fd1480e89aa0d4e6e4738695b48 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                      










                                                           
#!/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"

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

	cd - > /dev/null
}

post_copy() {
	:
}