-
Notifications
You must be signed in to change notification settings - Fork 24
/
snapcraft.yaml
1793 lines (1694 loc) · 53 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: gnome-42-2204-sdk
version: git
summary: Shared GNOME 42 Ubuntu stack SDK
description: |
This snap contains the GNOME 42 development files. These are used during the build process of snaps that depend on the GNOME 42 stack. This helps developers to make sure their application is built against the correct verson of GNOME and GTK libraries.
**For users**
This snap is automatically installed and removed when needed. **Manually adding or removing this snap is not recommended** and might break things.
* If you are having issues with **snaps** using GNOME, please contact the experts on the Snapcraft forum: https://forum.snapcraft.io/
* If you want to install the GNOME Desktop Environment, then you are in the wrong place. Please take a look at https://www.gnome.org/ for more information on how to get it.
**For developers**
* The `gnome` extension is the recommended way to use this in your own snap: https://snapcraft.io/docs/gnome-extension
* You can report issues with this SDK snap on GitHub: https://github.com/ubuntu/gnome-sdk/issues
* The source code of this snap is available on GitHub in the `gnome-42-2204-sdk` branch: https://github.com/ubuntu/gnome-sdk/tree/gnome-42-2204-sdk
* This snap is used for building snaps of applications using GNOME or GTK. If you are looking for instructions on how to build GNOME applications instead, take a look at https://developer.gnome.org/
contact: https://github.com/ubuntu/gnome-sdk/issues
confinement: strict
grade: stable
base: core22 # if the base is changed, the BUILDENV part must be updated
parts:
buildenv:
plugin: nil
build-environment: &buildenv
- ACLOCAL_PATH: $CRAFT_STAGE/usr/share/aclocal
- XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/usr/share
- LD_LIBRARY_PATH: $CRAFT_STAGE/usr/lib/vala-0.56:$CRAFT_STAGE/usr/lib:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- GDK_PIXBUF_MODULE_FILE: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
- PKG_CONFIG_PATH: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig:$CRAFT_STAGE/usr/lib/pkgconfig:$CRAFT_STAGE/usr/share/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
- CRAFT_EXT_CORE_LEVEL: core22
ninja:
plugin: nil
source: https://github.com/ninja-build/ninja.git
source-tag: 'v1.11.1'
source-depth: 1
override-build: |
rm -rf build
rm -f ninja
rm -f ninja_bootstrap
sed -i 's_^#!/usr/bin/env python$_#!/usr/bin/env python3_g' configure.py
./configure.py --bootstrap
mv ninja ninja_bootstrap
rm -rf build
./ninja_bootstrap
rm -f ninja_bootstrap
mkdir -p $CRAFT_PART_INSTALL/usr/bin
mv ninja $CRAFT_PART_INSTALL/usr/bin/
build-packages:
- python3
meson-deps:
after: [ ninja ]
plugin: nil
source: https://github.com/mesonbuild/meson.git
source-tag: '1.2.3'
source-depth: 1
override-build: |
python3 -m pip install .
mkdir -p $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages
rm -rf $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages/meson*
python3 -m pip install --target=$CRAFT_PART_INSTALL/usr .
mv $CRAFT_PART_INSTALL/usr/meson* $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages/
sed -i "s%^#!/usr/bin/python3$%#!/usr/bin/env python3%g" /usr/local/bin/meson
sed -i "s%^#!/usr/bin/python3$%#!/usr/bin/env python3%g" $CRAFT_PART_INSTALL/usr/bin/meson
build-packages:
- python3-pip
libtool:
source: https://git.savannah.gnu.org/git/libtool.git
source-tag: 'v2.4.7'
plugin: autotools
# ext:updatesnap
# version-format:
# ignore: true
autotools-configure-parameters: [ --prefix=/usr ]
build-environment: *buildenv
build-packages:
- help2man
- texinfo
override-stage: |
set -eux
craftctl default
LIBTOOLIZE=usr/bin/libtoolize
sed -i 's#pkgauxdir="#pkgauxdir="$CRAFT_STAGE#' $LIBTOOLIZE
sed -i 's#pkgltdldir="#pkgltdldir="$CRAFT_STAGE#' $LIBTOOLIZE
sed -i 's#aclocaldir="#aclocaldir="$CRAFT_STAGE#' $LIBTOOLIZE
libffi:
after: [ libtool, meson-deps ]
source: https://gitlab.freedesktop.org/gstreamer/meson-ports/libffi.git
source-tag: 'meson-3.2.9999.4'
# ext:updatesnap
# version-format:
# format: 'meson-%M.%m.%R'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
override-pull: |
craftctl default
patch -p1 < $CRAFT_PROJECT_DIR/patches/libffi-enable-building-on-riscv64.patch
glib:
after: [ libffi, meson-deps ]
source: https://gitlab.gnome.org/GNOME/glib.git
source-tag: '2.78.1'
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
override-build: |
set -eux
craftctl default
mkdir -p $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/glib-2.0/
cp $CRAFT_PART_INSTALL/usr/bin/{gio-querymodules,glib-compile-schemas} $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/glib-2.0/
build-packages:
- pkg-config
- libmount-dev
- gcc
- g++
- clang
pixman:
after: [ glib, meson-deps ]
source: https://gitlab.freedesktop.org/pixman/pixman.git
source-tag: 'pixman-0.42.2'
# ext:updatesnap
# version-format:
# format: 'pixman-%M.%m.%R'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dgtk=disabled
build-environment: *buildenv
cairo:
after: [ pixman, meson-deps ]
source: https://gitlab.freedesktop.org/cairo/cairo.git
source-tag: '1.18.0' # 1.17.8 fails to build, so... maybe in core24, or 1.17.9
# ext:updatesnap
# version-format:
# ignore-version: '1.17.8'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dxlib=enabled
- -Dpng=enabled
- -Dxcb=enabled
- -Dtee=enabled
- -Dzlib=enabled
build-environment: *buildenv
build-packages:
- libfontconfig1-dev
- libfreetype6-dev
- libx11-dev
- libxext-dev
- libxcb1-dev
- libxcb-render0-dev
- libxcb-shm0-dev
- libsm-dev
- zlib1g-dev
- liblzo2-dev
gobject-introspection:
after: [ cairo, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gobject-introspection.git
source-tag: '1.74.0'
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
# lower-than: 1.76.0
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dgtk_doc=false
build-environment: *buildenv
override-build: |
set -eux
craftctl default
sed -i "s#\([\"\']\)/usr/\([^\"\']*\)#os.environ.get\('CRAFT_STAGE'\) + \1/usr/\2#g" $CRAFT_PART_INSTALL/usr/bin/g-ir-scanner
build-packages:
- python3-dev
- bison
- flex
vala:
after: [ gobject-introspection ]
source: https://gitlab.gnome.org/GNOME/vala.git
source-tag: '0.56.14'
source-depth: 1
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment: *buildenv
build-packages:
- autoconf-archive
- valac
- libgraphviz-dev
gee:
after: [ vala ]
source: https://gitlab.gnome.org/GNOME/libgee.git
source-tag: '0.20.6'
source-depth: 1
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment: *buildenv
override-build: |
set -eux
craftctl default
GIREPOSITORY_PATH=$CRAFT_PART_INSTALL/usr/lib/girepository-1.0
mkdir -p $GIREPOSITORY_PATH
cp gee/Gee-0.8.typelib $GIREPOSITORY_PATH/
GIR_PATH=$CRAFT_PART_INSTALL/usr/share/gir-1.0
mkdir -p $GIR_PATH
cp gee/Gee-0.8.gir $GIR_PATH/
#rm -r $CRAFT_PART_INSTALL/$(echo $CRAFT_STAGE | cut -d/ -f2)
atk:
after: [ gee, meson-deps ]
source: https://gitlab.gnome.org/GNOME/atk.git
source-tag: '2.38.0'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dintrospection=true
- -Ddocs=false
build-environment: *buildenv
override-build: |
set -eux
craftctl default
PC=$CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig/atk.pc
sed -i 's#exec_prefix=/usr#exec_prefix=${prefix}#' $PC
sed -i 's#libdir=/usr/lib/$CRAFT_ARCH_TRIPLET#libdir=${prefix}/lib/$CRAFT_ARCH_TRIPLET#' $PC
sed -i 's#includedir=/usr/include#includedir=${prefix}/include#' $PC
at-spi2-core:
after: [ atk, meson-deps ]
source: https://gitlab.gnome.org/GNOME/at-spi2-core.git
source-tag: 'AT_SPI2_CORE_2_44_1'
# ext:updatesnap
# version-format:
# format: 'AT_SPI2_CORE_%M_%m_%R'
# lower-than: 2.45
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dintrospection=yes
- -Ddocs=false
build-environment: *buildenv
build-packages:
- libdbus-1-dev
- libxtst-dev
at-spi2-atk:
after: [ at-spi2-core, meson-deps ]
source: https://gitlab.gnome.org/GNOME/at-spi2-atk.git
source-tag: 'AT_SPI2_ATK_2_38_0'
# ext:updatesnap
# version-format:
# format: 'AT_SPI2_ATK_%M_%m_%R'
# lower-than: 2.39
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dtests=false
build-environment: *buildenv
fribidi:
after: [ at-spi2-atk, meson-deps ]
source: https://github.com/fribidi/fribidi.git
source-tag: 'v1.0.13'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Ddocs=false
build-environment: *buildenv
harfbuzz:
after: [ fribidi, meson-deps ]
source: https://github.com/harfbuzz/harfbuzz.git
source-tag: '8.3.0' # developers declared that they won't break ABI
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Dgraphite2=enabled
- -Dintrospection=enabled
- -Dgobject=enabled
- -Doptimization=3
- -Ddebug=true
- --default-library=both
build-environment: *buildenv
override-build: |
set -eux
craftctl default
for PC in $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig/harfbuzz*.pc;
do
sed -i 's#exec_prefix=/usr#exec_prefix=${prefix}#' $PC
sed -i 's#libdir=/usr#libdir=${prefix}#' $PC
sed -i 's#includedir=/usr#includedir=${prefix}#' $PC
done
for f in `find $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET |grep \\.la`; do
sed -i "s#^libdir='/usr/lib#libdir='$CRAFT_STAGE/usr/lib#g" $f
done
build-packages:
- ragel
- libgraphite2-dev
pango:
after: [ harfbuzz, meson-deps ]
source: https://gitlab.gnome.org/GNOME/pango.git
source-tag: '1.51.1'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dinstall-tests=false
- -Dgtk_doc=false
- -Dintrospection=enabled
build-environment: *buildenv
build-packages:
- libthai-dev
- libxft-dev
- libxrender-dev
- libxt-dev
- cmake
gdk-pixbuf:
after: [ pango, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gdk-pixbuf.git
source-tag: '2.42.10'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dinstalled_tests=false
- -Dgtk_doc=false
- -Ddocs=false
- -Dintrospection=enabled
- -Dman=false
- -Dtests=false
- -Dinstalled_tests=false
build-environment: *buildenv
override-build: |
set -eux
craftctl default
cp $CRAFT_PART_INSTALL/usr/bin/gdk-pixbuf-query-loaders $CRAFT_STAGE/usr/bin/
LOADERS_PATH=$CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders
$CRAFT_PART_INSTALL/usr/bin/gdk-pixbuf-query-loaders $LOADERS_PATH/*.so > $LOADERS_PATH.cache
# workaround for thumbnailer being in a different directory in the snap env
sed -i 's#/usr/bin/##' $CRAFT_PART_INSTALL/usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
organize:
usr/bin/gdk-pixbuf-query-loaders: usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
build-packages:
- libpng-dev
- libjpeg-dev
- libtiff-dev
librsvg:
after: [ gdk-pixbuf, vala ]
source: https://gitlab.gnome.org/GNOME/librsvg.git
source-tag: '2.56.4' # they left the odd->unstable even->stable scheme, and now tags are stable
# ext:updatesnap
# version-format:
# no-9x-revisions: true
# lower-than: 2.57 # 2.57 requires a more modern Cargo version
source-depth: 1
plugin: autotools
autotools-configure-parameters:
- --prefix=/usr
- --enable-introspection=yes
- --enable-vala=yes
- --enable-pixbuf-loader
build-environment: *buildenv
build-packages:
- cargo
#- libcroco3-dev
override-stage: |
set -eux
craftctl default
# snapcraft is adding twice $CRAFT_STAGE
cp -a $CRAFT_STAGE/$CRAFT_STAGE/* $CRAFT_STAGE/
epoxy:
after: [ librsvg, meson-deps ]
source: https://github.com/anholt/libepoxy.git
source-tag: '1.5.10' # Note minor version of tag/branch can be even or odd and be stable
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
build-packages:
- libgl1-mesa-dev
- libegl1-mesa-dev
- xutils-dev
json-glib:
after: [ epoxy, meson-deps ]
source: https://gitlab.gnome.org/GNOME/json-glib.git
source-tag: '1.8.0'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dgtk_doc=disabled
build-environment: *buildenv
libpsl:
after: [ json-glib, meson-deps ]
source: https://github.com/rockdaboot/libpsl.git
source-tag: '0.21.2'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Druntime=libidn2
#- -Dtests=false # available in master, not in 0.21.2
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
build-packages:
- libidn2-0-dev
- libunistring-dev
override-pull: |
set -eux
craftctl default
sed -i 's#^\#!/usr/bin/env python$#\#!/usr/bin/env python3#g' src/psl-make-dafsa
libsoup2:
after: [ libpsl, meson-deps ]
source: https://gitlab.gnome.org/GNOME/libsoup.git
source-tag: '2.74.3'
# ext:updatesnap
# version-format:
# lower-than: 3
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dvapi=enabled
- -Dtls_check=false #disable build time check, but we need to ensure glib-networking is available at runtime
build-environment: *buildenv
build-packages:
- libsqlite3-dev
- libkrb5-dev
- libbrotli-dev
libsoup3:
after: [ libsoup2, meson-deps ]
source: https://gitlab.gnome.org/GNOME/libsoup.git
source-tag: '3.4.4'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dvapi=enabled
- -Dtls_check=false #disable build time check, but we need to ensure glib-networking is available at runtime
build-environment: *buildenv
build-packages:
- libsqlite3-dev
- libkrb5-dev
- libbrotli-dev
- libnghttp2-dev
librest:
after: [ libsoup3 ]
source: https://gitlab.gnome.org/GNOME/librest.git
source-tag: '0.8.1' # looks like this branch has been updated more recently than the 0.8 tags - weird
# ext:updatesnap
# version-format:
# same-major: true
# same-minor: true
source-depth: 1
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment: *buildenv
build-packages:
- gtk-doc-tools
wayland:
after: [ librest, meson-deps ]
source: https://gitlab.freedesktop.org/wayland/wayland.git
source-tag: '1.22.0'
source-depth: 1
plugin: meson
# ext:updatesnap
# version-format:
# no-9x-revisions: true
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Ddocumentation=false
build-environment: *buildenv
wayland-protocols:
after: [ wayland, meson-deps ]
source: https://gitlab.freedesktop.org/wayland/wayland-protocols.git
source-tag: '1.32'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
gtk3:
after: [ wayland-protocols, wayland, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gtk.git
source-tag: '3.24.38'
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
# lower-than: 4
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dbroadway_backend=true
- -Dx11_backend=true
- -Dwayland_backend=true
- -Dwin32_backend=false
- -Dquartz_backend=false
- -Dxinerama=yes
- -Dintrospection=true
- -Dbuiltin_immodules=yes
- -Ddemos=false
- -Dexamples=false
build-environment: *buildenv
organize:
usr/lib/gtk-3.0: usr/lib/$CRAFT_ARCH_TRIPLET/gtk-3.0
usr/bin/gtk-query-immodules-3.0: usr/lib/$CRAFT_ARCH_TRIPLET/libgtk-3-0/gtk-query-immodules-3.0
build-packages:
- libxkbcommon-dev
- libxinerama-dev
- libcups2-dev
- libcolord-dev
- libxrandr-dev
- libxcursor-dev
- libisocodes-dev
- libxcomposite-dev
- libxdamage-dev
- libxfixes-dev
- libxi-dev
- libxkbfile-dev
- libxml2-utils
override-pull: |
craftctl default
patch -p1 < $CRAFT_PROJECT_DIR/patches/gdkglcontext-wayland-Fallback-to-GLES-2_0-after-GL-failed.patch
gtk4:
after: [ wayland-protocols, wayland, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gtk.git
source-tag: '4.12.3'
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dbroadway-backend=true
- -Dx11-backend=true
- -Dwayland-backend=true
- -Dwin32-backend=false
- -Dmacos-backend=false
- -Dintrospection=enabled
- -Dgtk_doc=false
- -Ddemos=false
- -Dbuild-examples=false
- -Dbuild-tests=false
- -Dmedia-gstreamer=enabled
- -Ddemos=false
- -Dbuild-testsuite=false
- -Dbuild-examples=false
- -Dbuild-tests=false
- -Dprint-cups=enabled
build-environment: *buildenv
organize:
usr/lib/gtk-4.0: usr/lib/$CRAFT_ARCH_TRIPLET/gtk-4.0
build-packages:
- libxkbcommon-dev
- libcups2-dev
- libcolord-dev
- libxrandr-dev
- libxcursor-dev
- libisocodes-dev
- libxcomposite-dev
- libxdamage-dev
- libxfixes-dev
- libxi-dev
- libxkbfile-dev
- libxml2-utils
- libgstreamer-plugins-bad1.0-dev
stage:
- -usr/bin/wayland-scanner
- -usr/lib/*/libwayland-client.so.0.20.0
- -usr/lib/*/libwayland-server.so.0.20.0
gtk-locales:
after: [ gtk3, gtk4 ]
plugin: nil
build-environment: *buildenv
override-pull: |
set -eux
apt-get download "language-pack-gnome-*-base"
override-build: |
set -eux
for deb in *.deb; do dpkg-deb -x $deb .; done
find usr/share/locale-langpack -type f -not -name "gtk30*.mo" -exec rm '{}' \;
mkdir -p $CRAFT_PART_INSTALL/usr/share
cp -r usr/share/locale-langpack $CRAFT_PART_INSTALL/usr/share/
poppler:
after: [ cairo, gdk-pixbuf, glib, gobject-introspection, gtk3, meson-deps ]
source: https://gitlab.freedesktop.org/poppler/poppler.git
source-tag: 'poppler-23.11.0'
# ext:updatesnap
# version-format:
# format: 'poppler-%M.%m.%R'
source-depth: 1
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -Doptimization=3
- -Ddebug=true
- -DBUILD_GTK_TESTS=OFF
- -DBUILD_QT5_TESTS=OFF
- -DBUILD_QT6_TESTS=OFF
- -DBUILD_CPP_TESTS=OFF
- -DBUILD_MANUAL_TESTS=OFF
- -DENABLE_QT5=OFF
- -DENABLE_QT6=OFF
- -DENABLE_GLIB=ON
- -DENABLE_GTK_DOC=OFF
- -DENABLE_GPGME=OFF
- -DENABLE_GOBJECT_INTROSPECTION=ON
build-environment: *buildenv
build-packages:
- libboost1.74-dev
- libcurl4-openssl-dev
- libopenjp2-7-dev
- libnss3-dev
- liblcms2-dev
libadwaita:
source: https://gitlab.gnome.org/GNOME/libadwaita.git
source-tag: '1.4.8'
source-depth: 1
after: [ meson-deps, gtk4 ]
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dintrospection=enabled
- -Dvapi=true
- -Dgtk_doc=false
- -Dtests=false
- -Dexamples=false
build-environment: *buildenv
build-packages:
- sassc
- libyaml-dev
- libzstd-dev
- libsystemd-dev
- gperf
- libappstream-dev
override-pull: |
craftctl default
patch -p1 < $CRAFT_PROJECT_DIR/patches/style-manager-Support-Yaru-accent-colors.patch
libportal:
after: [gtk3, gtk4, gtk-locales, meson-deps ]
plugin: meson
source: https://github.com/flatpak/libportal.git
source-tag: '0.7.1'
source-depth: 1
build-environment: *buildenv
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Ddocs=false
- -Dintrospection=true
- -Dvapi=true
- -Dbackend-gtk3=enabled
- -Dbackend-gtk4=enabled
- -Dbackend-qt5=disabled
- -Dtests=false
- -Dportal-tests=false
mm-common:
after: [ libportal, meson-deps ]
source: https://gitlab.gnome.org/GNOME/mm-common.git
source-tag: '1.0.5'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Duse-network=true
override-build: |
set -eux
craftctl default
build-environment: *buildenv
build-packages:
- wget
# Since the objective is to build Gtkmm 3.24.x, 2.66.x is the maximum GLibmm version
# that works for that. 2.68 or newer aren't accepted by the MESON builder and triggers
# the download of an old GLibmm version. Thus this one should be used.
glibmm:
after: [ mm-common ]
source: https://gitlab.gnome.org/GNOME/glibmm.git
source-tag: '2.66.6' # maximum version useful for gtkmm-3.24.
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '2.67.0'
plugin: autotools
override-build: |
set -eux
# Make sure all of the *.am files from mm-common are found
mkdir -p /usr/bin
mkdir -p /usr/share/mm-common/build/
mkdir -p /usr/share/mm-common/doctool/
cp $CRAFT_STAGE/usr/bin/mm-common-prepare /usr/bin/mm-common-prepare
cp $CRAFT_STAGE/usr/bin/mm-common-get /usr/bin/mm-common-get
cp $CRAFT_STAGE/usr/share/mm-common/build/*.am /usr/share/mm-common/build/
cp $CRAFT_STAGE/usr/share/mm-common/doctool/* /usr/share/mm-common/doctool/
# needed for cairomm
cp $CRAFT_STAGE/usr/share/mm-common/build/*.py /usr/share/mm-common/build/
# Manual build of glibmm
cd $CRAFT_PART_BUILD
./autogen.sh --prefix=/usr
make -j8
make install DESTDIR=$CRAFT_PART_INSTALL
for f in `find $CRAFT_PART_INSTALL/usr/lib |grep \\.la`; do
sed -i "s#^libdir='/usr/lib#libdir='$CRAFT_STAGE/usr/lib#g" $f
done
build-packages:
- libsigc++-2.0-dev
- libxml-parser-perl
build-environment: *buildenv
# Again, cairomm is needed to build pangomm, but 1.14.x is the maximum version recognized
# by the valid pangomm version needed for Gtkmm 3.24. Setting 1.16 or newer won't be
# recognized by pangomm and the builder will download a compatible old version, thus
# defeating the objective of having recent code.
cairomm:
after: [ glibmm, meson-deps ]
source: https://gitlab.freedesktop.org/cairo/cairomm.git
source-tag: '1.14.5' # maximum version useful for gtkmm-3.24
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '1.15.0'
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dmaintainer-mode=false
- -Dbuild-documentation=false
- -Dbuild-examples=false
build-environment: *buildenv
build-packages:
- doxygen
pangomm:
after: [ cairomm, meson-deps ]
source: https://gitlab.gnome.org/GNOME/pangomm.git
source-tag: '2.46.3' # maximum version useful for gtkmm-3.24
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '2.47.0'
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dmaintainer-mode=true
- -Dbuild-documentation=false
build-environment:
- ACLOCAL_PATH: $CRAFT_STAGE/usr/share/aclocal
- XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/usr/share
- LD_LIBRARY_PATH: $CRAFT_STAGE/usr/lib/vala-0.56${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- GDK_PIXBUF_MODULE_FILE: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
- M4PATH: $CRAFT_STAGE/usr/lib/glibmm-2.4/proc/m4
override-build: |
set -eux
mkdir -p ../src/untracked/build_scripts/
cp -p $CRAFT_STAGE/usr/share/mm-common/build/generate-binding.py ../src/untracked/build_scripts/
craftctl default
atkmm:
after: [ pangomm ]
source: https://gitlab.gnome.org/GNOME/atkmm.git
source-tag: '2.28.3' # maximum version useful for gtkmm-3.24
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '2.29.0'
plugin: autotools
override-build: |
set -eux
cd $CRAFT_PART_BUILD
./autogen.sh --prefix=/usr
make -j8
make install DESTDIR=$CRAFT_PART_INSTALL
build-environment:
- ACLOCAL_PATH: $CRAFT_STAGE/usr/share/aclocal
- XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/usr/share
- LD_LIBRARY_PATH: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET:$CRAFT_STAGE/usr/lib/vala-0.56${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- GDK_PIXBUF_MODULE_FILE: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
- M4PATH: $CRAFT_STAGE/usr/lib/glibmm-2.4/proc/m4
gtkmm:
after: [ atkmm, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gtkmm.git
source-tag: '3.24.8'
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: 4
# no-9x-minors: true
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dmaintainer-mode=true
- -Dbuild-documentation=false
- -Dbuild-demos=false
build-environment:
- ACLOCAL_PATH: $CRAFT_STAGE/usr/share/aclocal
- XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/usr/share
- LD_LIBRARY_PATH: $CRAFT_STAGE/usr/lib/vala-0.56:$CRAFT_STAGE/usr/lib:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- GDK_PIXBUF_MODULE_FILE: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
- M4PATH: $CRAFT_STAGE/usr/lib/glibmm-2.4/proc/m4
override-build: |
set -eux
mkdir -p ../src/untracked/build_scripts/
cp -p $CRAFT_STAGE/usr/share/mm-common/build/generate-binding.py ../src/untracked/build_scripts/
craftctl default
gtksourceview:
after: [ gtkmm, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gtksourceview.git
source-tag: '5.10.0'
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
build-packages:
- gettext
- libxml2-dev
override-pull: |
set -eux
craftctl default
sed -i 's#Werror=missing-include-dirs#Wmissing-include-dirs#g' meson.build
libdazzle:
after: [ gtksourceview, meson-deps ]
source: https://gitlab.gnome.org/GNOME/libdazzle.git
source-tag: '3.44.0'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
override-pull: |
set -eux
craftctl default
sed -i 's#Werror=missing-include-dirs#Wmissing-include-dirs#g' meson.build
libcanberra:
after: [ libdazzle ]
source: http://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz
# ext:updatesnap
# version-format:
# ignore: true
plugin: autotools
autotools-configure-parameters:
- --prefix=/usr
- --with-builtin=pulse
build-environment: *buildenv
override-build: |
./autogen.sh
craftctl default
build-packages:
- libasound2-dev
- libvorbis-dev
- libtdb-dev
- libpulse-dev
- libgstreamer1.0-dev
gsound:
after: [ libcanberra, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gsound.git
source-tag: '1.0.3'
source-depth: 1
source-type: git
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
gsettings-desktop-schemas:
after: [ gsound, meson-deps ]
source: https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git
source-tag: '42.0'
# ext:updatesnap
# version-format:
# same-major: true
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
build-environment: *buildenv
override-build: |