-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
com.codemouse92.timecard.yaml
91 lines (89 loc) · 3.84 KB
/
com.codemouse92.timecard.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
app-id: com.codemouse92.timecard
default-branch: stable
runtime: org.kde.Platform
runtime-version: '6.4'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm15
command: Timecard-App
cleanup:
- /include
- /share/aclocal
- /share/doc
- /share/cmake
- /share/man
- "*.a"
- "*.la"
finish-args:
- --filesystem=home
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --talk-name=org.freedesktop.DBus.Proprieties
- --talk-name=org.freedesktop.IBus
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.kde.*
- --talk-name=com.canonical.indicator.application
- --talk-name=org.ayatana.indicator.application
- --env=PYTHONPATH=/app/packages/python
modules:
# qt-include and pyside6 modules borrowed from https://github.com/flathub/com.github.unrud.djpdf
- name: qt-include
# https://bugreports.qt.io/browse/PYSIDE-787
buildsystem: simple
build-commands:
- mkdir -p /app/include/qt
- cp -R /usr/include/Qt* /app/include/qt
- name: pyside6
buildsystem: cmake-ninja
builddir: true
build-options:
append-path: /usr/lib/sdk/llvm15/bin
append-ld-library-path: /usr/lib/sdk/llvm15/lib
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DBUILD_TESTS=OFF
post-install:
# Make packages discoverable by pip
- |
libpath=$(ls -d /app/lib/python*/site-packages) || exit 1
for pkg in PySide6 shiboken6; do
version=$(python3 -c "import ${pkg}; print(${pkg}.__version__)") || exit 1
printf 'Metadata-Version: 1.0\nName: %s\nVersion: %s\n' "${pkg}" "${version}" > "${libpath}/${pkg}.egg-info" || exit 1
done
cleanup:
- /bin
sources:
- type: archive
url: https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-6.4.3-src/pyside-setup-everywhere-src-6.4.3.tar.xz
sha256: ab344f369eb949354f1069ce24962be5a5f03b93b27da081e3a01e5bc3581d4e
x-checker-data:
type: html
url: https://download.qt.io/official_releases/QtForPython/pyside6/
version-pattern: '>PySide6-(6\.4(?:\.[\d.]+)?)-src/<'
url-template: https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-$version-src/pyside-setup-everywhere-src-$version.tar.xz
- type: shell
commands:
# use qt-include
- sed -i 's|\(--include-paths=\)|\1/app/include/qt:|' sources/pyside6/cmake/Macros/PySideModules.cmake
# fix python module search path
- sed -i '/--sys-path\b/ a "${pysidebindings_BINARY_DIR}/.."' sources/pyside6/cmake/Macros/PySideModules.cmake
- name: Timecard-App
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST}
- install -Dm644 share/icons/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 share/applications/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 share/metainfo/${FLATPAK_ID}.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml
sources:
- type: file
url: https://files.pythonhosted.org/packages/12/68/95515eaff788370246dac534830ea9ccb0758e921ac9e9041996026ecaf2/setuptools-53.0.0.tar.gz
sha256: 1b18ef17d74ba97ac9c0e4b4265f123f07a8ae85d9cd093949fa056d3eeeead5
- type: file
url: https://files.pythonhosted.org/packages/ed/46/e298a50dde405e1c202e316fa6a3015ff9288423661d7ea5e8f22f589071/wheel-0.36.2.tar.gz
sha256: e11eefd162658ea59a60a0f6c7d493a7190ea4b9a85e335b33489d9f17e0245e
- type: git
url: https://github.com/codemouse92/timecard
tag: v3.0.0