forked from snapcrafters/webkitgtk-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
111 lines (111 loc) · 2.83 KB
/
snapcraft.yaml
File metadata and controls
111 lines (111 loc) · 2.83 KB
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
name: webkitgtk-6-gnome-2404-sdk
base: core24
version: "2.48.0"
summary: Web content engine for GTK(SDK)
description: |
SDK snap for Webkitgtk-6.0+, used with gnome-46-2204 and core24.
grade: stable
confinement: strict
lint:
ignore:
- library
platforms:
amd64:
arm64:
armhf:
ppc64el:
s390x:
parts:
webkitgtk-6-gnome-2204-sdk:
#source: https://webkitgtk.org/releases/webkitgtk-2.40.1.tar.xz
source: https://github.com/WebKit/WebKit.git
source-tag: "webkitgtk-${SNAPCRAFT_PROJECT_VERSION}"
source-depth: 1
plugin: cmake
cmake-parameters:
- -DPORT=GTK
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- -DCMAKE_INSTALL_LIBEXECDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- -DCMAKE_SKIP_RPATH=ON
- -DUSE_AVIF=ON
- -DUSE_GTK4=ON
- -DUSE_LIBBACKTRACE=OFF
- -DUSE_JPEGXL=OFF
- -DENABLE_SPEECH_SYNTHESIS=OFF
- -DENABLE_JOURNALD_LOG=OFF
- -DENABLE_DOCUMENTATION=OFF
- -DENABLE_MINIBROWSER=ON
build-packages:
- bubblewrap
- gettext
- gperf
- icu-devtools
- libavif-dev
- libcairo2-dev
- libcurl4-gnutls-dev
- libdav1d-dev
- libenchant-2-dev
- libepoxy-dev
- libfreetype-dev
- libgcrypt20-dev
- libghc-text-icu-dev
- libghc-text-icu-prof
- libgav1-dev
- libgirepository-1.0-dev
- libglx-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-bad1.0-dev
- libgstreamer-plugins-base1.0-dev
- libgstreamer-plugins-good1.0-dev
- libgtk-4-dev
- libharfbuzz-dev
- libhyphen-dev
- libicu-dev
- liblcms2-dev
- libmanette-0.2-dev
- libnghttp2-dev
- libopenjp2-7-dev
- libopengl-dev
- libpng-dev
- libsoup-3.0-dev
- libsecret-1-dev
- libseccomp-dev
- libsqlite3-dev
- libtasn1-6-dev
- libwebp-dev
- libwoff-dev
- libxcomposite-dev
- libxdamage-dev
- libxrender-dev
- libxslt1-dev
- libxt-dev
- ruby-all-dev
- unifdef
- xdg-dbus-proxy
debs:
plugin: nil
stage-packages:
- libicu74
- libavif16
prime:
- -usr/share
pkg-config-fix:
plugin: nil
after: [webkitgtk-6-gnome-2204-sdk]
override-prime: |
craftctl default
for PC in $(find . -path "*/pkgconfig/*.pc")
do
sed -i '1cprefix=/snap/webkitgtk-6-gnome-2404-sdk/current/usr' $PC
sed -i 's#libdir=/usr/lib#libdir=${prefix}/lib#' $PC
done
# avoid priming any libraries provided by gpu-2404 content providers
gpu-2404:
after: [pkg-config-fix]
source: https://github.com/canonical/gpu-snap.git
plugin: nil
override-prime: |
craftctl default
${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404