/
snapcraft.yaml
66 lines (60 loc) · 1.52 KB
/
snapcraft.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
name: pinta
base: core22
version: '2.1.2'
summary: 'Painting Made Simple'
description: |
Pinta is a freely licensed and cross platform simple drawing application.
It is designed in lieu of Paint.NET; being both simple to use and powerful for a wide variety of image manipulation purposes.
grade: stable
confinement: strict
license: MIT
compression: lzo
parts:
pinta:
plugin: nil
source: https://github.com/pintaproject/pinta.git
source-commit: 79f2799cba3a1a78c20ecbabfb6575204036f6c8 # 2.1.2 tag
build-packages:
- build-essential
- pkg-config
- autotools-dev
- autoconf
- autoconf-archive
- automake
- autopoint
- libtool
- gettext
- intltool
- dotnet-sdk-8.0
stage-packages:
- dotnet-runtime-8.0
override-build: |
export PATH=/usr/bin:${PATH}
./autogen.sh --prefix=${CRAFT_PART_INSTALL}/
make install
cleanup:
plugin: nil
build-snaps:
- core22
- gnome-42-2204
override-prime: |
set -eux
for snap in "core22" "gnome-42-2204"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done
after: [pinta]
slots:
pinta-dbus-service:
interface: dbus
bus: session
name: com.github.PintaProject.Pinta
apps:
pinta:
command: usr/bin/dotnet $SNAP/lib/pinta/Pinta.dll
common-id: com.github.PintaProject.Pinta
plugs:
- home
- removable-media
- network
slots: [pinta-dbus-service]
extensions: [gnome]