summaryrefslogtreecommitdiffstats
path: root/remote/modules/printergui/printergui.build
blob: 3a0fd52b97ad2b551e8878377a724d07aa874876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

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

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

	mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin"
	cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!"
	pinfo "Running qmake"
	qmake "$SRCDIR/src/printergui.pro" -r -spec linux-g++ || perror "'qmake' failed."
	pinfo "Running make"
	make || perror "'make' failed."
}
post_copy() {
	mkdir -p "${TARGET_BUILD_DIR}/var/spool/STANDARD"
	chmod a+rwt "${TARGET_BUILD_DIR}/var/spool/STANDARD" 
}