-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathio.github.julian_hochhaus.LG4X_V2.yaml
128 lines (119 loc) · 4.99 KB
/
io.github.julian_hochhaus.LG4X_V2.yaml
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
app-id: io.github.julian_hochhaus.LG4X_V2
runtime: org.kde.Platform
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: 5.15-23.08
runtime-version: 5.15-23.08
command: main.py
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --device=dri
cleanup:
- /include
- /share/man
modules:
- name: openblas # dependency for lmfit and numpy
no-autogen: true
make-args:
- DYNAMIC_ARCH=1
- DYNAMIC_OLDER=1
- FC=gfortran
- TARGET=GENERIC
- USE_OPENMP=0
make-install-args:
- PREFIX=/app
sources:
- type: archive
url: https://github.com/xianyi/OpenBLAS/archive/v0.3.29.tar.gz
sha256: 38240eee1b29e2bde47ebb5d61160207dc68668a54cac62c076bb5032013b1eb
x-checker-data:
type: anitya
project-id: 2540
url-template: https://github.com/xianyi/OpenBLAS/archive/v$version.tar.gz
- name: Cython
buildsystem: simple
build-commands:
- pip3 install --no-index --ignore-installed --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
--no-build-isolation .
sources:
- type: archive
url: https://files.pythonhosted.org/packages/d5/f7/2fdd9205a2eedee7d9b0abbf15944a1151eb943001dbdc5233b1d1cfc34e/Cython-3.0.10.tar.gz
sha256: dcc96739331fb854dcf503f94607576cfe8488066c61ca50dfd55836f132de99
- name: pybind11
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DPYBIND11_INSTALL:BOOL=ON
- -DPYBIND11_TEST:BOOL=OFF
- -DPYTHON_INCLUDE_DIRS=/usr/include/python3.11
sources:
- type: git
url: https://github.com/pybind/pybind11
tag: v2.13.6
commit: a2e59f0e7065404b44dfe92a28aca47ba1378dc4
x-checker-data:
type: git
tag-pattern: ^v?([\d.]+)$
# Update modules
# python3 flatpak-pip-generator tomli packaging pyproject_metadata exceptiongroup pybind11 setuptools_scm_git_archive setuptools_scm setuptools meson-python pythran --ignore-installed numpy,scipy -o numpy_deps && python3 flatpak-pip-generator versioneer contourpy cycler fonttools cppy kiwisolver pillow pyparsing asteval uncertainties python-dateutil scipy pandas lmfit lmfitxps --ignore-installed numpy -o dependencies && flatpak-builder build --force-clean --install --user io.github.julian_hochhaus.LG4X_V2.yaml
- numpy_deps.json
- name: python-numpy
buildsystem: simple
build-options:
ldflags: -lgfortran
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
--no-build-isolation .
sources:
- type: archive
url: https://files.pythonhosted.org/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz
sha256: 2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010
# x-checker-data:
# type: pypi
# name: numpy
- dependencies.json
- name: python3-matplotlib
buildsystem: simple
build-commands:
- mkdir -p subprojects/packagecache/
- cp qhull-8.0.2.tgz freetype-2.6.1.tar.gz subprojects/packagecache/ #Copy qhull and freetype to correct dir so matplotlib will not try to download it
- python3 -mpip install . --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
--no-build-isolation
sources:
- type: file
url: https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz
sha256: 0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014
dest-filename: freetype-2.6.1.tar.gz
- type: file
dest-filename: qhull-8.0.2.tgz
url: https://github.com/qhull/qhull/archive/v8.0.2/qhull-8.0.2.tar.gz
sha256: 8774e9a12c70b0180b95d6b0b563c5aa4bea8d5960c15e18ae3b6d2521d64f8b
- type: archive
url: https://files.pythonhosted.org/packages/68/dd/fa2e1a45fce2d09f4aea3cee169760e672c8262325aa5796c49d543dc7e6/matplotlib-3.10.0.tar.gz
sha256: b886d02a581b96704c9d1ffe55709e49b4d2d52709ccebc4be42db856e511278
x-checker-data:
type: pypi
name: matplotlib
- name: LG4X-V2
buildsystem: simple
build-commands:
- install -Dm744 Python/* /app/bin
- cp -r Databases /app
- install -Dm744 config/config.ini /app/config/config.ini #Install this config file because it is needed for lg4x to start
- install -Dm644 data/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 data/logo/logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 data/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources:
- type: git
url: https://github.com/Julian-Hochhaus/LG4X-V2
commit: 3d1f3a6f8c61808a398a970d7ec5221737bb8e7e
tag: 2.2.1
x-checker-data:
type: git
tag-pattern: ^([\d.]+)$
- type: patch
path: metainfo_release_date.patch
- type: patch
path: flatpak_config.patch