-
Notifications
You must be signed in to change notification settings - Fork 169
/
snapcraft.yaml
116 lines (115 loc) · 3.21 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
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
# SPDX-FileCopyrightText: 2023-2024 Scarlett Moore <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
---
name: gcompris
confinement: strict
grade: stable
base: core22
adopt-info: gcompris
apps:
gcompris:
extensions:
- kde-neon-6
common-id: org.kde.gcompris.desktop
desktop: usr/share/applications/org.kde.gcompris.desktop
command: usr/bin/gcompris-qt
plugs:
- home
- pulseaudio
- audio-record
environment:
ALSA_CONFIG_PATH: "$SNAP/kf6/etc/asound.conf"
QT_MEDIA_BACKEND: "ffmpeg"
XDG_CACHE_HOME: "$SNAP_USER_DATA/.local/usr/share"
layout:
"/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
symlink: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
slots:
session-dbus-interface:
interface: dbus
name: org.kde.gcompris
bus: session
parts:
qml-box2d:
source: https://github.com/qml-box2d/qml-box2d.git
plugin: cmake
build-packages:
- cmake
- libpulse0
stage-packages:
- webp
- libpulse0
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DBUILD_STANDALONE=ON
- -DCMAKE_INSTALL_SYSCONFDIR=/etc
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var
- -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
- -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_INSTALL_RUNSTATEDIR=/run
- -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- --log-level=STATUS
- -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
gcompris:
after:
- qml-box2d
parse-info:
- usr/share/metainfo/org.kde.gcompris.appdata.xml
plugin: cmake
build-packages:
- cmake
- libssl-dev
- gettext
stage-packages:
- libasound2
- libasound2-data
- libasound2-plugins
source: .
source-type: local
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DCMAKE_INSTALL_SYSCONFDIR=/etc
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var
- -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
- -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_INSTALL_RUNSTATEDIR=/run
- -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- --log-level=STATUS
- -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
prime:
- -usr/lib/*/cmake/*
- -usr/include/*
- -usr/share/ECM/*
- -usr/share/man/*
- -usr/bin/X11
- -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
- -usr/lib/aspell/*
- -usr/share/lintian
cleanup:
after:
- gcompris
plugin: nil
build-snaps:
- core22
- kf6-core22
- qt-common-themes
override-prime: |
set -eux
for snap in "core22" "kf6-core22" "qt-common-themes"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
done