forked from LukeBriggsDev/Pepys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.lukebriggs.pepys.yml
176 lines (166 loc) · 6.02 KB
/
dev.lukebriggs.pepys.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
app-id: dev.lukebriggs.pepys
runtime: org.kde.Platform
runtime-version: '5.15'
sdk: org.kde.Sdk
base: io.qt.qtwebengine.BaseApp
base-version: '5.15'
command: runner.sh
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=dri
# For user to choose journal directory
- --filesystem=home
# To access online content from journals
- --share=network
- --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
cleanup-commands:
- /app/cleanup-BaseApp.sh
modules:
- name: pepys
buildsystem: simple
build-commands:
- mkdir -p /app/src
- cp -r ./src/main /app/src
- mkdir -p /app/share/metainfo
- cp dev.lukebriggs.pepys.appdata.xml /app/share/metainfo/
- mkdir -p /app/share/applications
- cp dev.lukebriggs.pepys.desktop /app/share/applications/
- mkdir -p /app/share/icons/hicolor/scalable/apps
- cp -r ./src/main/resources/base/icons/appicons/base/* /app/share/icons/hicolor
- cp -r ./src/main/resources/base/icons/appicons/hires/* /app/share/icons/hicolor
- cp ./dev.lukebriggs.pepys.svg /app/share/icons/hicolor/scalable/apps/
sources:
- type: git
commit: 48ac726be8282d11eb3dae4779f016df7fd9c11b
tag: v1.0.8
url: https://github.com/LukeBriggsDev/Pepys
- python3-requirements.json
- name: pyqt-deps
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=/app --root=/
modules:
- python3-PyQt-builder.json
sources:
- type: archive
url: https://files.pythonhosted.org/packages/b1/40/dd8f081f04a12912b65417979bf2097def0af0f20c89083ada3670562ac5/PyQt5_sip-12.9.0.tar.gz
sha256: d3e4489d7c2b0ece9d203ae66e573939f7f60d4d29e089c9f11daa17cfeaae32
- name: pyqt5
build-options:
env:
- QMAKEPATH=/app/lib
arch:
aarch64:
config-opts:
- --disable-feature=PyQt_Desktop_OpenGL
cleanup:
- /share/sip
config-opts:
- --confirm-license
- --no-designer-plugin
- --no-qml-plugin
- --no-python-dbus
- --no-tools
- --enable=QtCore
- --enable=QtGui
- --enable=QtNetwork
- --enable=QtWidgets
- --enable=QtWebChannel
- --enable=QtPrintSupport
- --bindir=/app/bin
- --destdir=/app/lib/python3.8/site-packages
- --sipdir=/app/share/sip/PyQt5
- --stubsdir=/app/lib/python3.8/site-packages/PyQt5
- QMAKE_CFLAGS_RELEASE='-I/usr/include/python3.8/'
- QMAKE_CXXFLAGS_RELEASE='-I/usr/include/python3.8/'
sources:
- type: archive
url: https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz
sha256: 2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
- type: script
commands:
- processed=`sed -e 's|prefix|sysroot|' <<< $@`
- python3 configure.py $processed
dest-filename: configure
- name: pyqt-webengine
build-options:
cppflags: "-I/app/include/QtWebEngine -I/app/include/QtWebEngineCore -I/app/include/QtWebEngineWidgets -I/usr/include/python3.8"
env:
- QMAKEPATH=/app/lib
config-opts:
- --concatenate
- --no-qsci-api
- --no-dist-info
- --no-sip-files
- --destdir=/app/lib/python3.8/site-packages/PyQt5
- --stubsdir=/app/lib/python3.8/site-packages/PyQt5
- QMAKE_CFLAGS_RELEASE='-I/usr/include/python3.8/'
- QMAKE_CXXFLAGS_RELEASE='-I/usr/include/python3.8/'
- QMAKE_INCDIR+=/app/include/QtWebEngine
- QMAKE_INCDIR+=/app/include/QtWebEngineCore
- QMAKE_INCDIR+=/app/include/QtWebEngineWidgets
sources:
- type: archive
url: https://files.pythonhosted.org/packages/fb/5d/4c5bb7adca4f2436545a391fe311dcb4ccc711f1ce2ab7adb87475ec566e/PyQtWebEngine-5.15.4.tar.gz
sha256: cedc28f54165f4b8067652145aec7f732a17eadf6736835852868cf76119cc19
- type: script
dest-filename: configure
commands:
- processed=`sed -e 's|prefix|sysroot|' <<< $@`
- python3 configure.py $processed
- name: enchant
cleanup:
- '*.la'
- '*.a'
sources:
- type: archive
url: https://github.com/AbiWord/enchant/releases/download/v2.2.15/enchant-2.2.15.tar.gz
sha256: 3b0f2215578115f28e2a6aa549b35128600394304bd79d6f28b0d3b3d6f46c03
- name: pandoc
buildsystem: simple
build-commands:
- install -D bin/pandoc /app/bin/pandoc
sources:
- type: archive
only-arches:
- x86_64
url: https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-amd64.tar.gz
sha256: 7404aa88a6eb9fbb99d9803b80170a3a546f51959230cc529c66a2ce6b950d4c
- type: archive
only-arches:
- aarch64
url: https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-arm64.tar.gz
sha256: 4f87bfe8a0a626ad0e17d26d42e99a1c0ed7d369cca00366c1b3d97525f57db5
- name: kerberos
subdir: src
sources:
- type: archive
url: https://web.mit.edu/kerberos/dist/krb5/1.19/krb5-1.19.1.tar.gz
sha256: fa16f87eb7e3ec3586143c800d7eaff98b5e0dcdf0772af7d98612e49dbeb20b
- name: wkhtmltopdf
buildsystem: simple
build-commands:
- ar x wkhtmltox_*.deb
- tar -xf data.tar.xz
- cp -r ./usr/local/* /app/
cleanup:
- /lib/libwkhtmltox.*
- /bin/wkhtmltoimage
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
sha256: 3e7a93a2ae4a2dd5cccb1b7bcce0eb462c75f05efa314a29499dadfdc5ebc59e
- type: file
only-arches:
- aarch64
url: https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_arm64.deb
sha256: d2929792fdc95fa66d637ecbf9cd0dce874f53d783d5ddcf947a86c007c81c95
- name: runner
buildsystem: simple
build-commands:
- echo "python3 /app/src/main/python/main.py" > /app/bin/runner.sh
- chmod +x /app/bin/runner.sh