Debian Codegraph @

build-aux/snap/snapcraft.yaml

raw
1 # Thank you Soumya Dghosh for the guidance https://github.com/soumyaDghosh
2 name: gradia
3 version: '1.12.0'
4 summary: Make your screenshots ready for all
5 description: |
6 Gradia helps you quickly prepare your screenshots for sharing by fixing common issues like transparency and awkward sizing. With simple tools to add backgrounds, adjust aspect ratios, and annotate images, you can enhance your screenshots to look professional and consistent across social media, blogs, and other platforms on the internet.
7 base: core24
8 adopt-info: gradia
9 compression: lzo
10 grade: stable
11 confinement: strict
12 parts:
13 gradia:
14 plugin: meson
15 source: https://github.com/AlexanderVanhee/Gradia.git
16 source-tag: 'v1.12.0'
17 source-depth: 1
18 meson-parameters:
19 - --prefix=/snap/gradia/current/usr
20 - -Dbuildtype=release
21 - -Denable-ocr=false
22 build-snaps:
23 - blueprint-compiler
24 parse-info: [ usr/share/metainfo/be.alexandervanhee.gradia.metainfo.xml ]
25 organize:
26 snap/gradia/current: .
27 deps:
28 plugin: python
29 source: .
30 python-packages:
31 - Wand==0.6.13
32 - Pillow
33 - pytesseract
34 stage:
35 - -bin/activate*
36 - -bin/Activate.ps1
37 - -bin/python*
38 - -bin/pip*
39 - -pyvenv.cfg
40 - -lib/*/*/setup*
41 - -lib/*/*/pkg*
42 - -lib/*/*/pip*
43 - -lib/*/*/_dist*
44 - -share
45 - -include
46 organize:
47 lib/python3.12/site-packages: usr/lib/python3/dist-packages
48 stage-packages:
49 - libzstd1
50 - curl
51 cleanup:
52 after:
53 - deps
54 plugin: nil
55 build-snaps:
56 - core24
57 - gnome-46-2404
58 override-prime: |
59 set -eux
60 for snap in "core24" "gnome-46-2404"; do
61 cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "$CRAFT_PRIME/{}" \;
62 done
63 slots:
64 gradia:
65 interface: dbus
66 bus: session
67 name: be.alexandervanhee.gradia
68 apps:
69 gradia:
70 command: usr/bin/gradia
71 common-id: be.alexandervanhee.gradia
72 extensions: [gnome]
73 environment:
74 PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
75 plugs:
76 - home
77 - network
78 - network-status