forked from snapcrafters/gimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
1342 lines (1294 loc) · 34.8 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: gimp
version: '2.10.0-RC1'
summary: GNU Image Manipulation Program
description: |
Whether you are a graphic designer, photographer, illustrator, or scientist,
GIMP provides you with sophisticated tools to get your job done. You can
further enhance your productivity with GIMP thanks to many customization
options and 3rd party plugins.
confinement: strict
icon: gimp.png
apps:
gimp:
command: desktop-launch alsa-launch $SNAP/usr/bin/gimp
environment:
GIMP2_DATADIR: $SNAP/usr/share/gimp/2.0
GIMP2_LOCALEDIR: $SNAP/usr/share/gimp/2.0/locale
GIMP2_PLUGINDIR: $SNAP/usr/lib/gimp/2.0
GIMP2_SYSCONFDIR: $SNAP/etc/gimp/2.0
plugs:
- desktop
- desktop-legacy
- gsettings
- home
- opengl
- removable-media
- wayland
- x11
environment:
GEGL_PATH: $SNAP/usr/lib/gegl-0.2
parts:
fix-pkgconfig-files:
plugin: nil
build: |
cat <<EOF > $SNAPCRAFT_PART_INSTALL/fix-pkgconfig-files.sh
for pcfile in \$SNAPCRAFT_PART_INSTALL/usr/lib/\$SNAPCRAFT_ARCH_TRIPLET/pkgconfig/*.pc \$SNAPCRAFT_PART_INSTALL/usr/lib/pkgconfig/*.pc \$SNAPCRAFT_PART_INSTALL/usr/local/lib/\$SNAPCRAFT_ARCH_TRIPLET/pkgconfig/*.pc \$SNAPCRAFT_PART_INSTALL/usr/local/lib/pkgconfig/*.pc; do
sed -i -E "s~^((include|lib)dir=)/usr(/local)?~\1\\\${prefix}~g" \$pcfile || true
sed -i -E "s~^((exec_)?prefix=)(/usr(/local)?)~\1/\3~" \$pcfile || true
done
EOF
chmod +x $SNAPCRAFT_PART_INSTALL/fix-pkgconfig-files.sh
prime:
- -*
patches:
plugin: dump
source: patches
prime:
- -*
alsa:
after: [alsa-lib, alsa-plugins]
alsa-plugins:
after: [alsa-lib]
# https://download.gnome.org/sources/at-spi2-core
atspi2:
after:
- fix-pkgconfig-files
- gobject-introspection
source: https://download.gnome.org/sources/at-spi2-core/2.28/at-spi2-core-2.28.0.tar.xz
source-checksum: sha256/42a2487ab11ce43c288e73b2668ef8b1ab40a0e2b4f94e80fca04ad27b6f1c87
plugin: meson
build-packages:
- libx11-dev
- libxi-dev
- libxkbcommon-dev
- libxtst-dev
- python3-pip
prepare: |
pip3 install meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
meson --prefix=/usr --buildtype=release snapbuild
cd snapbuild
ninja
env DESTDIR=$SNAPCRAFT_PART_INSTALL ninja install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libx11-6
- libxi6
- libxkbcommon-x11-0
- libxtst6
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gimp.org/pub/babl
babl:
after:
- fix-pkgconfig-files
- gobject-introspection
plugin: autotools
source: https://download.gimp.org/pub/babl/0.1/babl-0.1.44.tar.bz2
source-checksum: sha256/f463fda0dec534c442234d1c374ea5d19abe0da942e11c9c5092dcc6b30cde7d
configflags:
- --prefix=/usr
- --disable-docs
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# - lib
# - usr/lib
# https://cairographics.org/releases or https://cairographics.org/snapshots
cairo:
after:
- fix-pkgconfig-files
- fontconfig
- pixman
- poppler
source: https://cairographics.org/snapshots/cairo-1.15.10.tar.xz
source-checksum: sha1/de180498ac563249b93ee5e17ba9aa26f90644b3
plugin: autotools
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
desktop-glib-only:
build-packages: []
stage-packages: []
# https://www.freedesktop.org/software/fontconfig/release
fontconfig:
after:
- fix-pkgconfig-files
- freetype
source: https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.0.tar.bz2
plugin: autotools
build-packages:
- gperf
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.savannah.gnu.org/releases/freetype
freetype-prebuild:
after:
- fix-pkgconfig-files
source: https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2
plugin: autotools
configflags:
- --prefix=/usr/local
- --without-harfbuzz
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
prime:
- -*
# https://download.savannah.gnu.org/releases/freetype
freetype:
after:
- fix-pkgconfig-files
- harfbuzz
source: https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2
plugin: autotools
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/gdk-pixbuf
gdk-pixbuf:
after:
- fix-pkgconfig-files
source: https://download.gnome.org/sources/gdk-pixbuf/2.36/gdk-pixbuf-2.36.11.tar.xz
source-checksum: sha256/ae62ab87250413156ed72ef756347b10208c00e76b222d82d9ed361ed9dde2f3
plugin: autotools
configflags:
- --prefix=/usr
- --enable-relocatable=true
- --with_man=false
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --enable-relocations
make
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gimp.org/pub/gegl
gegl:
after:
- babl
- cairo
- fix-pkgconfig-files
- gdk-pixbuf
- gettext
- gexiv2
- glib
- gobject-introspection
- graphviz
- gtk2
- json-glib
- lcms2
- librsvg
- libwebp
- pango
source: https://download.gimp.org/pub/gegl/0.3/gegl-0.3.30.tar.bz2
source-checksum: sha256/f8b4a93ad2c5187efcc7d9a665ef626a362587eb701eebccf21b13616791e551
plugin: autotools
build-packages:
- libexiv2-dev
- libfftw3-dev
- libjpeg8-dev
- liblensfun-dev
- libopenexr-dev
- libraw-dev
- libspiro-dev
- libsuitesparse-dev
- libtiff5-dev
- valac
configflags:
- --prefix=/usr
- --disable-docs
- --disable-rpath
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --disable-docs --disable-rpath
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libamd2.4.1
- libbtf1.2.1
- libcamd2.4.1
- libccolamd2.9.1
- libcholmod3.0.6
- libcolamd2.9.1
- libcsparse3.1.4
- libcxsparse3.1.4
- libexiv2-14
- libjpeg8
- libopenexr22
- libraw15
- libspiro0
- libspqr2.0.2
- libtiff5
- libumfpack5.7.1
stage:
- -usr/lib/**/glib-2.0/gio-querymodules
- -usr/lib/**/glib-2.0/glib-compile-resources
- -usr/lib/**/glib-2.0/glib-compile-schemas
- -usr/share/doc
- -usr/share/lintian
# prime:
# - -**/*.a
# - -**/*.la
# - -usr/bin/X11
# - -usr/lib/gcc
# - -usr/lib/pkgconfig
# - -usr/lib/mime
# - -usr/lib/valgrind
# - -usr/lib/X11
# - lib
# - usr/bin
# - usr/lib
# - usr/share/gir-1.0
# - usr/share/graphviz
# - usr/share/lensfun
# - usr/share/locale
# - usr/share/mime
# - usr/share/X11
# https://ftp.gnu.org/pub/gnu/gettext
gettext:
after:
- fix-pkgconfig-files
- glib
- libcroco
source: https://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.1.tar.xz
plugin: autotools
build-packages:
- bison
- libunistring-dev
- libxml2-dev
configflags:
- --prefix=/usr
- --disable-curses
- --disable-java
- --enable-relocatable
- --without-emacs
- --without-included-glib
- --without-included-libunistring
- --without-included-libxml
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libunistring0
- libxml2
# prime:
# - -**/*.a
# - -**/*.la
# - lib
# - usr/lib
# - usr/share/gettext*
# - usr/share/locale
# https://download.gnome.org/sources/gexiv2
gexiv2:
after:
- fix-pkgconfig-files
- glib
- gobject-introspection
- gtk2
source: https://download.gnome.org/sources/gexiv2/0.10/gexiv2-0.10.8.tar.xz
source-checksum: sha256/81c528fd1e5e03577acd80fb77798223945f043fd1d4e06920c71202eea90801
plugin: autotools
build-packages:
- libexiv2-dev
- valac
configflags:
- --prefix=/usr
- --disable-gtk-doc
- --disable-gtk-doc-html
- --disable-gtk-doc-pdf
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libexiv2-14
# prime:
# - -**/*.a
# - -**/*.la
# - lib
# - usr/bin/py*
# - usr/lib
# - usr/share/gir-1.0
# https://download.gnome.org/sources/glib
glib:
after:
- desktop-glib-only
- fix-pkgconfig-files
source: https://download.gnome.org/sources/glib/2.56/glib-2.56.0.tar.xz
source-checksum: sha256/ecef6e17e97b8d9150d0e8a4b3edee1ac37331213b8a2a87a083deea408a0fc7
plugin: autotools
build-packages:
- libmount-dev
- libpcre3-dev
- python-dev
- python3-dev
- zlib1g-dev
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libmount1
- libpcre3
- python
- python3
- zlib1g
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/glib-networking
glib-networking:
after:
- fix-pkgconfig-files
- glib
- gsettings-desktop-schemas
plugin: meson
source: https://download.gnome.org/sources/glib-networking/2.56/glib-networking-2.56.0.tar.xz
source-checksum: sha256/47fd10bcae2e5039dc5f685e3ea384f48e64a6bee26d755718f534a978477c93
build-packages:
- libgnutls-dev
- libproxy-dev
- python3-pip
prepare: |
pip3 install meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
organize:
root/build_gimp/stage/usr/lib/gio/modules/*: usr/lib/gio/modules/
stage-packages:
- libgnutls30
- libproxy1v5
# prime:
# - -**/*.a
# - -**/*.la
# - -root
# https://download.gnome.org/sources
gobject-introspection:
after:
- fix-pkgconfig-files
- glib
- patches
plugin: autotools
source: https://download.gnome.org/sources/gobject-introspection/1.56/gobject-introspection-1.56.0.tar.xz
source-checksum: sha256/0d7059fad7aa5ec50d9678aea4ea139acab23737e9cf9ca0d86c615cecbaa0f8
build-packages:
- bison
- flex
- libffi-dev
- patch
- python-dev
- python3-dev
prepare: |
patch -Np1 < $SNAPCRAFT_STAGE/gobject-introspection.patch
configflags:
- --prefix=/usr
- --with-python=python
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libffi6
- python
- python3
# prime:
# - -**/*.a
# - -**/*.la
# https://graphviz.gitlab.io/_pages/Download/Download_source.html
graphviz:
after:
- fix-pkgconfig-files
- fontconfig
source: https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz
source-checksum: md5/4ea6fd64603536406166600bcc296fc8
plugin: autotools
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources
gsettings-desktop-schemas:
after:
- fix-pkgconfig-files
- gettext
- glib
- gobject-introspection
plugin: autotools
source: https://download.gnome.org/sources/gsettings-desktop-schemas/3.28/gsettings-desktop-schemas-3.28.0.tar.xz
source-checksum: sha256/4cb4cd7790b77e5542ec75275237613ad22f3a1f2f41903a298cf6cc996a9167
configflags:
- --prefix=/usr
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://gstreamer.freedesktop.org/src/gstreamer
gstreamer:
after:
- fix-pkgconfig-files
- gettext
- gobject-introspection
source: https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.13.1.tar.xz
source-checksum: sha256/7d2dc896d533cf89f08ce41e3ae3914b1ef9b463ae16c3ef689367e114495804
plugin: autotools
build-packages:
- bison
- flex
- gettext
- liborc-0.4-dev
- libpulse-dev
- libxv-dev
configflags:
- --prefix=/usr
- --disable-benchmarks
- --disable-check
- --disable-debug
- --disable-examples
- --disable-fatal-warnings
- --disable-gst-debug
- --disable-gst-tracer-hooks
- --disable-rpath
- --disable-tests
- --disable-tools
- --enable-introspection=auto
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --disable-benchmarks --disable-check --disable-debug --disable-examples --disable-fatal-warnings --disable-gst-debug --disable-gst-tracer-hooks --disable-rpath --disable-tests --disable-tools --enable-introspection=auto
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libpulse0
- libxv1
# prime:
# - -**/*.a
# - -**/*.la
gst-plugins-base:
after:
- alsa
- cairo
- fix-pkgconfig-files
- gettext
- gobject-introspection
- gstreamer
- pango
source: https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.13.1.tar.xz
source-checksum: sha256/51cd6cb976d5f6b1cd46b800352cf11fca7af3d971e23fe38e1773505b29e21d
plugin: autotools
build-packages:
- libegl1-mesa-dev
- libfribidi-dev
- libgl1-mesa-dev
- liborc-0.4-dev
- libpulse-dev
- libx11-dev
- libxv-dev
- zlib1g-dev
configflags:
- --prefix=/usr
- --disable-debug
- --disable-examples
- --disable-fatal-warnings
- --disable-rpath
- --disable-valgrind
- --enable-introspection=auto
- --enable-orc
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --disable-debug --disable-examples --disable-fatal-warnings --disable-rpath --disable-valgrind --enable-introspection=auto --enable-orc
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libegl1-mesa
- libfribidi0
- libgl1
- liborc-0.4-0
- libpulse0
- libx11-6
- libxv1
- zlib1g
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/gtk+
gtk2:
after:
- cairo
- fix-pkgconfig-files
- fontconfig
- gdk-pixbuf
- libatk
- pango
source: https://download.gnome.org/sources/gtk+/2.24/gtk+-2.24.32.tar.xz
source-checksum: sha256/b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e
plugin: autotools
build-packages:
- libx11-dev
- libxcomposite-dev
- libxdamage-dev
- libxfixes-dev
- libxi-dev
- libxinerama-dev
- libxrandr-dev
- libxrender-dev
prepare: |
env GDK_PIXBUF_MODULEDIR=$SNAPCRAFT_STAGE/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders $SNAPCRAFT_STAGE/usr/bin/gdk-pixbuf-query-loaders > $SNAPCRAFT_STAGE/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
configflags:
- --prefix=/usr
- --with-xinput
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --with-xinput
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage:
- -usr/bin/gtk-update-icon-cache
stage-packages:
- libx11-6
- libxcomposite1
- libxdamage1
- libxfixes3
- libxi6
- libxinerama1
- libxrandr2
- libxrender1
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/gtk+
gtk3:
after:
- cairo
- fix-pkgconfig-files
- fontconfig
- gdk-pixbuf
- libatk
- libatk-bridge
- libepoxy
- pango
source: https://download.gnome.org/sources/gtk+/3.22/gtk+-3.22.29.tar.xz
source-checksum: sha256/a07d64b939fcc034a066b7723fdf9b24e92c9cfb6a8497593f3471fe56fbbbf8
plugin: autotools
build-packages:
- libwayland-dev
- libx11-dev
- libxcomposite-dev
- libxdamage-dev
- libxfixes-dev
- libxi-dev
- libxinerama-dev
- libxrandr-dev
- libxrender-dev
- wayland-protocols
configflags:
- --prefix=/usr
- --enable-x11-backend
- --enable-wayland-backend
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr --enable-x11-backend --enable-wayland-backend
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libwayland-client0
- libwayland-cursor0
- libwayland-egl1-mesa
- libx11-6
- libxcomposite1
- libxdamage1
- libxfixes3
- libxi6
- libxinerama1
- libxrandr2
- libxrender1
# prime:
# - -**/*.a
# - -**/*.la
# https://www.freedesktop.org/software/harfbuzz/release
harfbuzz:
after:
- fix-pkgconfig-files
- freetype-prebuild
- glib
source: https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.7.6.tar.bz2
source-checksum: sha256/da7bed39134826cd51e57c29f1dfbe342ccedb4f4773b1c951ff05ff383e2e9b
plugin: autotools
prepare: |
apt-get remove -yyq libfreetype6
ln -s ../local/lib/libfreetype.so.6 $SNAPCRAFT_STAGE/usr/lib/
build-packages:
- libicu-dev
configflags:
- --prefix=/usr
- --with-cairo=no
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
rm -f $SNAPCRAFT_STAGE/usr/lib/libfreetype.so*
stage-packages:
- libicu55
# prime:
# - -**/*.a
# - -**/*.la
# http://www.ece.uvic.ca/~frodo/jasper
jasper:
after:
- fix-pkgconfig-files
plugin: cmake
source: https://www.ece.uvic.ca/~frodo/jasper/software/jasper-2.0.14.tar.gz
build-packages:
- libgl1-mesa-dev
- libjpeg8-dev
configflags:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=release
- -DJAS_ENABLE_LIBJPEG=true
- -DJAS_ENABLE_OPENGL=true
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libgl1-mesa-glx
- libjpeg8
# prime:
# - -**/*.a
# - -**/*.la
# - usr/lib
# - usr/share/X11
# https://download.gnome.org/sources/json-glib
json-glib:
after:
- fix-pkgconfig-files
- glib
plugin: meson
source: https://download.gnome.org/sources/json-glib/1.4/json-glib-1.4.2.tar.xz
source-checksum: sha256/2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8
build-packages:
- python3-pip
prepare: |
pip3 install meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
- -Ddocs=false
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
meson --prefix=/usr --buildtype=release -Ddocs=false snapbuild
cd snapbuild
ninja
env DESTDIR=$SNAPCRAFT_PART_INSTALL ninja install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://github.com/mm2/Little-CMS/releases
lcms2:
after:
- fix-pkgconfig-files
plugin: autotools
source: https://github.com/mm2/Little-CMS/archive/lcms2.9.tar.gz
build-packages:
- libjpeg8-dev
- libtiff5-dev
- zlib1g-dev
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libjpeg8
- libtiff5
- zlib1g
# prime:
# - -**/*.a
# - -**/*.la
# - -usr/lib/gcc
# - -usr/lib/pkgconfig
# - usr/lib
# https://download.gnome.org/sources/atk
libatk:
after:
- fix-pkgconfig-files
- gobject-introspection
source: https://download.gnome.org/sources/atk/2.28/atk-2.28.1.tar.xz
source-checksum: sha256/cd3a1ea6ecc268a2497f0cd018e970860de24a6d42086919d6bf6c8e8d53f4fc
plugin: meson
build-packages:
- python3-pip
prepare: |
pip3 install meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
meson --prefix=/usr --buildtype=release snapbuild
cd snapbuild
ninja
env DESTDIR=$SNAPCRAFT_PART_INSTALL ninja install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/at-spi2-atk
libatk-bridge:
after:
- atspi2
- fix-pkgconfig-files
- libatk
source: https://download.gnome.org/sources/at-spi2-atk/2.26/at-spi2-atk-2.26.2.tar.xz
source-checksum: sha256/61891f0abae1689f6617a963105a3f1dcdab5970c4a36ded9c79a7a544b16a6e
plugin: meson
build-packages:
- libdbus-1-dev
- python3-pip
prepare: |
pip3 install meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
meson --prefix=/usr --buildtype=release snapbuild
cd snapbuild
ninja
env DESTDIR=$SNAPCRAFT_PART_INSTALL ninja install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libdbus-1-3
# prime:
# - -**/*.a
# - -**/*.la
# https://github.com/google/brotli/releases
libbrotli:
after:
- fix-pkgconfig-files
source: https://github.com/google/brotli/archive/v1.0.3.tar.gz
plugin: cmake
configflags:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
# - -DBROTLI_DISABLE_TESTS
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/libcroco
libcroco:
after:
- fix-pkgconfig-files
source: https://download.gnome.org/sources/libcroco/0.6/libcroco-0.6.12.tar.xz
source-checksum: sha256/ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860
plugin: autotools
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://download.gnome.org/sources/libepoxy
libepoxy:
after:
- fix-pkgconfig-files
source: https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.0.tar.xz
source-checksum: sha256/4c94995398a6ebf691600dda2e9685a0cac261414175c2adf4645cdfab42a5d5
plugin: autotools
build-packages:
- libegl1-mesa-dev
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- libegl1-mesa
# prime:
# - -**/*.a
# - -**/*.la
# https://gnupg.org/ftp/gcrypt/libgcrypt
libgcrypt:
after:
- fix-pkgconfig-files
- gettext
- libgpg-error
source: https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.2.tar.bz2
plugin: autotools
configflags:
- --prefix=/usr
- --disable-doc
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://gnupg.org/ftp/gcrypt/libgpg-error
libgpg-error:
after:
- fix-pkgconfig-files
- gettext
source: https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.28.tar.bz2
plugin: autotools
configflags:
- --prefix=/usr
- --disable-doc
- --disable-tests
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
# prime:
# - -**/*.a
# - -**/*.la
# https://github.com/mypaint/libmypaint/releases
libmypaint:
after:
- fix-pkgconfig-files
- gettext
- glib
- gobject-introspection
- json-glib
plugin: autotools
source: https://github.com/mypaint/libmypaint/releases/download/v1.3.0/libmypaint-1.3.0.tar.xz
source-checksum: sha256/6a07d9d57fea60f68d218a953ce91b168975a003db24de6ac01ad69dcc94a671
build-packages:
- intltool
- libjson-c-dev
- python
- python3
configflags:
- --prefix=/usr
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share
./configure --prefix=/usr
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage:
- -usr/lib/**/glib-2.0/gio-querymodules
- -usr/lib/**/glib-2.0/glib-compile-resources
- -usr/lib/**/glib-2.0/glib-compile-schemas
- -usr/share/doc
- -usr/share/lintian
# prime:
# - -**/*.a
# - -**/*.la
# - -usr/lib/gcc
# - -usr/lib/pkgconfig
# - lib
# - usr/lib
# - usr/share/gir-1.0
# - usr/share/locale
# http://www.libpng.org
libpng:
after:
- fix-pkgconfig-files
plugin: autotools
source: http://sourceforge.mirrorservice.org/l/li/libpng/libpng16/1.6.34/libpng-1.6.34.tar.xz
source-checksum: md5/c05b6ca7190a5e387b78657dbe5536b2
build-packages:
- zlib1g-dev
configflags:
- --prefix=/usr
install: |
$SNAPCRAFT_STAGE/fix-pkgconfig-files.sh
stage-packages:
- zlib1g
# prime:
# - -**/*.a
# - -**/*.la
# - -usr/lib/pkgconfig
# - usr/lib
# https://download.gnome.org/sources/librsvg
librsvg:
after:
- cairo
- fix-pkgconfig-files
- fontconfig
- gdk-pixbuf
- libcroco
source: https://download.gnome.org/sources/librsvg/2.42/librsvg-2.42.3.tar.xz
source-checksum: sha256/704f2c44b9b170fc5498de36a161d01ca8f584ba9c42654b98565a7b7bcbe657
plugin: autotools
configflags:
- --prefix=/usr
build: |
export XDG_DATA_DIRS=$SNAPCRAFT_STAGE/usr/share:/usr/local/share:/usr/share