-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.labbots.NiimPrintX.yml
88 lines (83 loc) · 2.98 KB
/
io.github.labbots.NiimPrintX.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
app-id: io.github.labbots.NiimPrintX
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: niimprintx
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --system-talk-name=org.bluez
- --filesystem=host
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
modules:
- name: imagemagick
config-opts:
- --enable-shared
- --disable-static
- --disable-docs
- --with-modules
- --with-threads
sources:
- type: archive
url: https://github.com/ImageMagick/ImageMagick/archive/7.1.1-41.tar.gz
sha256: cabf2516dce66da56dd4e3071453b808eefaf4326a93292d2a222a4ea623d601
x-checker-data:
type: anitya
project-id: 1372
stable-only: true
url-template: https://github.com/ImageMagick/ImageMagick/archive/$version.tar.gz
cleanup:
- /bin/*-config
- pre-pypi-dependencies.json
- rust-pypi-dependencies.json
- python3-poetry.json
- pyinstaller.json
# flatpak-builder-tools/pip/flatpak-pip-generator --yaml -r requirements.txt
# FIXME pyobjc-core* was removed from the list:
# See https://github.com/flatpak/flatpak-builder-tools/issues/394
- python3-requirements.yaml
- name: NiimPrintX
buildsystem: simple
build-commands:
- cp -r NiimPrintX/ /app/lib/python3.12/site-packages/
- install -Dm755 assets/linux/niimprintx /app/bin/niimprintx
- install -Dm755 niimprintx-cli /app/bin/niimprintx-cli
- install -Dm755 bluetoothctl /app/bin/bluetoothctl
- install -Dm644 -t /app/share/applications/ assets/linux/${FLATPAK_ID}.desktop
- install -Dm644 assets/linux/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 assets/linux/${FLATPAK_ID}.mime.xml /app/share/mime/packages/${FLATPAK_ID}.mime.xml
- |
for i in {128,256,512} ; do
install -Dm644 ./NiimPrintX/ui/assets/icon.iconset/icon_${i}x${i}.png /app/share/icons/hicolor/${i}x${i}/apps/${FLATPAK_ID}.png ;
done;
sources:
- type: git
url: https://github.com/labbots/NiimPrintX
tag: v0.0.47
- type: patch
path: add-b1-support.patch
use-git-am: true
- type: patch
path: 0001-Look-for-assets-in-the-right-place.patch
use-git-am: true
- type: patch
path: 0001-Use-magick-on-Linux-as-well.patch
use-git-am: true
# https://github.com/labbots/NiimPrintX/pull/16
- type: patch
path: 0001-Add-desktop-and-metainfo-file-for-Linux-distribution.patch
use-git-am: true
- type: script
dest-filename: niimprintx-cli
commands:
- python -m NiimPrintX.cli
# Work-around warning:
# WARNING:root:Could not determine BlueZ version, bluetoothctl not available, assuming 5.51+
- type: script
dest-filename: bluetoothctl
commands:
- echo "bluetoothctl: 5.99"