2
2
set -ex
3
3
4
4
export MAKEFLAGS=-j$( nproc)
5
- export QPMX_CACHE_DIR =/tmp/qpmx -cache
5
+ export QDEP_CACHE_DIR =/tmp/qdep -cache
6
6
7
7
DS_NAME=qdsappd
8
- QT_VERSION_TAG=v5.12.0
8
+ QT_VERSION_TAG=v5.12.1
9
9
MAIN_DEP=" libssl1.1 zlib1g libdbus-1-3 libc6 libglib2.0-0 libudev1 libpcre2-16-0 libpq5 libdouble-conversion1 libicu57 libinput10 ca-certificates"
10
- DEV_DEP=" openssl libssl-dev zlib1g-dev dbus libdbus-1-dev libc6-dev libglib2.0-dev libudev-dev libdouble-conversion-dev libicu-dev libpcre2-dev libpq-dev libinput-dev make gcc g++ curl python3 git perl gawk"
10
+ DEV_DEP=" openssl libssl-dev zlib1g-dev dbus libdbus-1-dev libc6-dev libglib2.0-dev libudev-dev libdouble-conversion-dev libicu-dev libpcre2-dev libpq-dev libinput-dev make gcc g++ curl python3 python3-pip git perl gawk"
11
+ PIP_DEV_DEPS=" qdep appdirs lockfile argcomplete"
11
12
12
13
if [! -d " /tmp/src/.git" ]; then
13
14
echo " Failed to find .git directory - not supported!"
16
17
17
18
apt-get -qq update
18
19
apt-get -qq install --no-install-recommends$MAIN_DEP $DEV_DEP
19
-
20
- # get QPM
21
- curl -O https://www.qpm.io/download/v0.11.0/linux_386/qpm
22
- install -m 755 ./qpm /usr/local/bin/
20
+ pip3 install$PIP_DEV_DEPS
23
21
24
22
mkdir /tmp/sysbuild
25
23
cd /tmp/sysbuild
@@ -55,25 +53,23 @@ make > /dev/null
55
53
make install
56
54
cd ..
57
55
58
- # build json serializer, qpmx, qtservice
59
- for repo in QtJsonSerializer qpmx QtService; do
56
+ # prepare qdep
57
+ qdep prfgen
58
+
59
+ # build json serializer, qtservice
60
+ for repo in QtJsonSerializer QtService; do
60
61
git clone https://github.com/Skycoder42/$repo .git ./$repo
61
62
cd $repo
62
63
latesttag=$( git describe --tags --abbrev=0)
63
64
echo checking out${latesttag}
64
65
git checkout${latesttag}
65
66
66
- if [[" $repo " == " qpmx" ]]; then
67
- git submodule init
68
- git submodule update
69
- fi
70
-
71
67
if [[-f src/imports/imports.pro ]]; then
72
68
echo " SUBDIRS -= imports" >> src/src.pro
73
69
fi
74
70
75
71
qmake
76
- make> /dev/null|| (cat /tmp/qpmx- * / * ; exit 1)
72
+ make> /dev/null
77
73
make install
78
74
cd ..
79
75
done
@@ -98,6 +94,7 @@ mv /tmp/src/tools/appserver/dockerbuild/env_start.sh /usr/bin/
98
94
/usr/bin/$DS_NAME --version
99
95
100
96
# remove unused stuff
97
+ pip3 uninstall$PIP_DEV_DEPS
101
98
apt-get -qq autoremove --purge$DEV_DEP
102
99
rm -rf /tmp/*
103
100
rm -rf$HOME /.cache/qpmx