blob: a11469d27c1e5e7e54c92aade2aadff63b6e726b (
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
|
#!/bin/bash
fetch_source() {
git clone "${REQUIRED_GIT}" src
cd src
git checkout "$REQUIRED_COMMIT"
cd ..
}
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 (e.g. not installed)."
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"
}
|