-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.freedesktop.Sdk.Extension.devenv.yaml
5722 lines (5459 loc) · 217 KB
/
org.freedesktop.Sdk.Extension.devenv.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
id: org.freedesktop.Sdk.Extension.devenv
branch: '22.08'
runtime: org.freedesktop.Sdk
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
build-extension: true
separate-locales: false
sdk-extensions:
- org.freedesktop.Sdk.Extension.go-musl
- org.freedesktop.Sdk.Extension.musl
- org.freedesktop.Sdk.Extension.rust-musl
- org.freedesktop.Sdk.Extension.sccache
build-options:
# see org.freedesktop.Sdk@/etc/flatpak-builder/defaults.json
cflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
-I/usr/lib/sdk/devenv/include -fPIC -static -static-pie
cflags-override: true
cxxflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
-I/usr/lib/sdk/devenv/include -fPIC -static -static-pie
cxxflags-override: true
#cppflags:
#cppflags-override: true
ldflags: -L/usr/lib/sdk/devenv/lib -Wl,-z,relro,-z,now -Wl,--as-needed -fPIC -Wl,-fuse-ld=mold -static -static-pie
ldflags-override: true
prefix: /usr/lib/sdk/devenv
libdir: /usr/lib/sdk/devenv/lib
prepend-path: /usr/lib/sdk/devenv/bin
prepend-ld-library-path: /usr/lib/sdk/devenv/lib
prepend-pkg-config-path: /usr/lib/sdk/devenv/lib/pkgconfig
append-path: /usr/lib/sdk/go-musl/bin:/usr/lib/sdk/musl/bin:/usr/lib/sdk/rust-musl/bin:/usr/lib/sdk/sccache/bin
strip: true
env:
- AR=x86_64-linux-musl-ar
- CC=x86_64-linux-musl-gcc
- CXX=x86_64-linux-musl-g++
- LD=x86_64-linux-musl-ld.mold
# TODO: consider overriding pkgconf envvars
#- PKG_CONFIG_LIBDIR=
#- PKG_CONFIG_PATH=/lib/pkgconfig:/share/pkgconfig
#- PKG_CONFIG_SYSROOT_DIR=/usr/lib/sdk/devenv
- CARGO_VARS=
HOME=${FLATPAK_BUILDER_BUILDDIR}
CARGO_HOME=${FLATPAK_BUILDER_BUILDDIR}/cargo
RUSTC_WRAPPER=$(if [ "$CCACHE_DIR" == "/run/ccache" ]; then echo ${SCCACHE_BIN}; fi;)
- SCCACHE_BIN=/usr/lib/sdk/sccache/bin/sccache
- SCCACHE_DIR=/run/ccache/sccache
# TODO: this is cache dir specific, maybe file a ticket upstream for in-cachedir config
# NOTE: config file documentation @ https://github.com/mozilla/sccache/blob/main/docs/Configuration.md
- SCCACHE_CONF=/run/ccache/sccache/config
- GO111MODULE=off
# NOTE: gocache size cannot be capped, see https://github.com/golang/go/issues/29561
# XDG_CACHE_HOME is set for a sane default when GOCACHE is empty
- GOVARS=
GOBIN=${FLATPAK_DEST}/bin
GOPATH=${FLATPAK_BUILDER_BUILDDIR}
XDG_CACHE_HOME=${FLATPAK_BUILDER_BUILDDIR}/cache
GOCACHE=$(if [ "$CCACHE_DIR" == "/run/ccache" ]; then echo /run/ccache/gocache; fi;)
- |
PYVARS=
PATH=${FLATPAK_DEST}/python/bin:${PATH}
LD_LIBRARY_PATH=${FLATPAK_DEST}/python/lib:${LD_LIBRARY_PATH}
x-musl-shared-build-options: &musl-shared-build-options
cflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
-I/usr/lib/sdk/devenv/include -fPIC -Bstatic -Wl,--dynamic-linker=/usr/lib/sdk/devenv/lib/libc.musl-x86_64.so.1
cflags-override: true
cxxflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
-I/usr/lib/sdk/devenv/include -fPIC -Bstatic -Wl,--dynamic-linker=/usr/lib/sdk/devenv/lib/libc.musl-x86_64.so.1
cxxflags-override: true
#cppflags:
#cppflags-override: true
ldflags: -L/usr/lib/sdk/devenv/lib -Wl,-z,relro,-z,now -Wl,--as-needed -fPIC -Wl,-fuse-ld=mold -Bstatic -Wl,--dynamic-linker=/usr/lib/sdk/devenv/lib/libc.musl-x86_64.so.1
ldflags-override: true
x-gcc-gnu-build-options: &gcc-gnu-build-options
cflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
cflags-override: true
cxxflags:
-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
cxxflags-override: true
#cppflags:
#cppflags-override: true
ldflags: -Wl,-z,relro,-z,now -Wl,--as-needed
ldflags-override: true
env:
- AR=ar
- CC=gcc
- CXX=g++
- LD=ld
x-cargo-build-commands: &cargo-build-commands
- eval ${CARGO_VARS} ${CARGO_VARS_EXTRA} cargo fetch
- eval ${CARGO_VARS} ${CARGO_VARS_EXTRA} cargo build --release
x-golang-online-build-commands: &golang-online-build-commands
- eval ${GOVARS} ${GOVARS_EXTRA} go get
- exit 1
x-golang-offline-build-commands: &golang-offline-build-commands
- eval ${GOVARS} ${GOVARS_EXTRA} go install
x-python-pip-build-commands: &python-pip-build-commands
# TODO: maybe switch to python-installer after new release
- eval ${PYVARS} pip3 install --exists-action=i --no-index --no-build-isolation
--prefix=${FLATPAK_DEST}/python *.whl
x-python-setup-build-commands: &python-setup-build-commands
- eval ${PYVARS} python3 setup.py build
- eval ${PYVARS} python3 setup.py install --skip-build --prefix=${FLATPAK_DEST}/python
--root=/ --optimize=1
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
- /lib/*.a
- /share/aclocal
- /share/cmake
- /share/doc
- /share/info
- /share/man/man3
- /share/pkgconfig
- '*.la'
modules:
############################
#### Categories ####
############################
#
# Prepare
# Packaging: Buildsystems
# Libraries
# Packaging: Python
# Packaging: Tools
# Archive
# Binary
# Clipboard
# Code: Debug
# Code: Editors
# Code: Tools
# Code: VCS
# Containers
# Data formats
# Dotfiles
# Files: Backup and sync
# Files: Filesystems
# Files: Folder listing
# Files: Managers
# Files: Search
# Files: Trashcan
# Images
# Network
# Processes
# Perl
# Python
# Security
# Shells
# Shells: Multiplexers
# Shells: Tools
# Terminal emulators
# FSW
# Polish
############################
#### Prepare ####
############################
- name: prepare-ccache
buildsystem: simple
build-commands:
- |
set -e
if [ "$CCACHE_DIR" == "/run/ccache" ]; then
install -dm755 ${FLATPAK_DEST}/bin
ln -s /usr/bin/ccache ${FLATPAK_DEST}/bin/x86_64-linux-musl-gcc
ln -s /usr/bin/ccache ${FLATPAK_DEST}/bin/x86_64-linux-musl-g++
fi
cleanup:
- '*'
- name: musl-libc-shared
buildsystem: simple
build-commands:
- install -Dm755 /usr/lib/sdk/musl/x86_64-linux-musl/lib/libc.so ${FLATPAK_DEST}/lib/libc.musl-x86_64.so.1
############################
# Packaging: Buildsystems #
############################
# - name: meson
# # NOTE: modules that need this would likely have to set PYTHONPATH to ${FLATPAK_DEST}/python$(python -c 'import sys; print("%s%s" %sys.version_info[0:2])')/site-packages
# build-options: *gcc-gnu-build-options
# buildsystem: simple
# build-commands:
# - python setup.py build
# - python setup.py install --skip-build --prefix=${FLATPAK_DEST} --root=/ --optimize=1
# sources:
# - type: archive
# url: https://github.com/mesonbuild/meson/releases/download/0.63.1/meson-0.63.1.tar.gz
# sha256: 06fe13297213d6ff0121c5d5aab25a56ef938ffec57414ed6086fda272cb65e9
# x-checker-data:
# type: anitya
# project-id: 6472
# stable-only: true
# url-template: https://github.com/mesonbuild/meson/releases/download/$version/meson-$version.tar.gz
# cleanup:
# - '*'
############################
#### Libraries ####
############################
# Libraries: Data compression
- name: bzip2-static
no-autogen: true
make-install-args:
- PREFIX=${FLATPAK_DEST}
sources:
- type: archive
url: https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
sha256: ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
x-checker-data:
type: anitya
project-id: 237
stable-only: true
url-template: https://sourceware.org/pub/bzip2/bzip2-$version.tar.gz
- type: shell
commands:
- sed -i '/^CC=/d;/^CFLAGS=/d' Makefile
- sed -i 's#$(PREFIX)/man#$(PREFIX)/share/man#g' Makefile
cleanup:
- '*'
- name: lz4-static
no-autogen: true
subdir: lib
make-install-args:
- PREFIX=${FLATPAK_DEST}
sources:
- type: archive
url: https://github.com/lz4/lz4/archive/v1.9.4/lz4-1.9.4.tar.gz
sha256: 0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
x-checker-data:
type: anitya
project-id: 1865
stable-only: true
versions:
'>': 1.9.3
url-template: https://github.com/lz4/lz4/archive/v$version/lz4-$version.tar.gz
- type: shell
commands:
- sed -i '/^BUILD_SHARED:=/ s/yes/no/' lib/Makefile
cleanup:
- '*'
- name: xz-static
config-opts:
- --disable-shared
- --disable-nls
- --disable-xz
- --disable-xzdec
- --disable-lzmadec
- --disable-lzmainfo
- --disable-lzma-links
- --disable-scripts
- --disable-doc
sources:
- type: archive
url: https://tukaani.org/xz/xz-5.2.6.tar.gz
sha256: a2105abee17bcd2ebd15ced31b4f5eda6e17efd6b10f921a01cda4a44c91b3a0
x-checker-data:
type: anitya
project-id: 5277
stable-only: true
url-template: https://tukaani.org/xz/xz-$version.tar.gz
cleanup:
- '*'
- name: zlib-static
config-opts:
- --static
sources:
- type: archive
url: https://zlib.net/zlib-1.2.12.tar.gz
sha256: 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9
x-checker-data:
type: anitya
project-id: 5303
stable-only: true
url-template: https://zlib.net/zlib-$version.tar.gz
cleanup:
- '*'
- name: zstd-static # depends on lz4 xz zlib
subdir: build/cmake
buildsystem: cmake
config-opts:
- -DZSTD_BUILD_PROGRAMS=OFF
- -DZSTD_BUILD_STATIC=ON
- -DZSTD_BUILD_SHARED=OFF
sources:
- type: archive
url: https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz
sha256: 7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0
x-checker-data:
type: anitya
project-id: 12083
stable-only: true
url-template: https://github.com/facebook/zstd/releases/download/v$version/zstd-$version.tar.gz
cleanup:
- '*'
# Libraries: Level1
- name: acl-static
config-opts:
- --disable-shared
sources:
- type: archive
url: https://download.savannah.gnu.org/releases/acl/acl-2.3.1.tar.gz
sha256: 760c61c68901b37fdd5eefeeaf4c0c7a26bdfdd8ac747a1edff1ce0e243c11af
x-checker-data:
type: anitya
project-id: 16
stable-only: true
url-template: https://download.savannah.gnu.org/releases/acl/acl-$version.tar.gz
cleanup:
- '*'
modules:
- name: attr-static
config-opts:
- --disable-shared
sources:
- type: archive
url: https://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.gz
sha256: bae1c6949b258a0d68001367ce0c741cebdacdd3b62965d17e5eb23cd78adaf8
x-checker-data:
type: anitya
project-id: 137
stable-only: true
url-template: https://download.savannah.gnu.org/releases/attr/attr-$version.tar.gz
cleanup:
- '*'
- name: expat-static
buildsystem: cmake
config-opts:
- -DEXPAT_BUILD_TOOLS=OFF
- -DEXPAT_BUILD_EXAMPLES=OFF
- -DEXPAT_BUILD_TESTS=OFF
- -DEXPAT_SHARED_LIBS=OFF
- -DEXPAT_BUILD_DOCS=OFF
sources:
- type: archive
url: https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.gz
sha256: 398f6d95bf808d3108e27547b372cb4ac8dc2298a3c4251eb7aa3d4c6d4bb3e2
x-checker-data:
type: anitya
project-id: 770
stable-only: true
url-template: https://github.com/libexpat/libexpat/releases/download/R_${version0}_${version1}_${version2}/expat-$version.tar.gz
cleanup:
- '*'
- name: fuse3-static
buildsystem: meson
config-opts:
- --default-library=static
- -Ddisable-mtab=true
- -Dudevrulesdir=${FLATPAK_DEST}/etc/udev/rules.d
- -Dutils=false
- -Dexamples=false
- -Duseroot=false
- -Dtests=false
sources:
- type: archive
url: https://github.com/libfuse/libfuse/releases/download/fuse-3.11.0/fuse-3.11.0.tar.xz
sha256: 8982c4c521daf3974dda8a5d55d575c988da13a571970f00aea149eb54fdf14c
x-checker-data:
type: anitya
project-id: 861
stable-only: true
url-template: https://github.com/libfuse/libfuse/releases/download/fuse-$version/fuse-$version.tar.xz
cleanup:
- '*'
- name: gpgme-static
config-opts:
- --disable-shared
make-args:
- CCLD=$(CC) -all-static
- CC_FOR_BUILD=$(CC)
- CFLAGS_FOR_BUILD=$(CFLAGS)
- CPPFLAGS_FOR_BUILD=$(CPPFLAGS)
- LDFLAGS_FOR_BUILD=$(LDFLAGS)
sources:
- type: archive
url: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.18.0.tar.bz2
sha256: 361d4eae47ce925dba0ea569af40e7b52c645c4ae2e65e5621bf1b6cdd8b0e9e
x-checker-data:
type: anitya
project-id: 1239
stable-only: true
url-template: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$version.tar.bz2
- type: shell
commands:
- sed -i 's/\($(CC_FOR_BUILD)\)/\1 $(CFLAGS_FOR_BUILD)/' doc/Makefile.in
cleanup:
- '*'
modules:
- name: libassuan-static
config-opts:
- --disable-shared
make-args:
- CCLD=$(CC) -all-static
- CC_FOR_BUILD=$(CC)
- CFLAGS_FOR_BUILD=$(CFLAGS)
- CPPFLAGS_FOR_BUILD=$(CPPFLAGS)
- LDFLAGS_FOR_BUILD=$(LDFLAGS)
sources:
- type: archive
url: https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2
sha256: 8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4
x-checker-data:
type: anitya
project-id: 1559
stable-only: true
url-template: https://gnupg.org/ftp/gcrypt/libassuan/libassuan-$version.tar.bz2
cleanup:
- '*'
modules:
- name: libgpg-error-static
config-opts:
- --disable-shared
- --disable-nls
make-args:
- CCLD=$(CC) -all-static
- CC_FOR_BUILD=$(CC)
- CFLAGS_FOR_BUILD=$(CFLAGS)
- CPPFLAGS_FOR_BUILD=$(CPPFLAGS)
- LDFLAGS_FOR_BUILD=$(LDFLAGS)
sources:
- type: archive
url: https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.45.tar.bz2
sha256: 570f8ee4fb4bff7b7495cff920c275002aea2147e9a1d220c068213267f80a26
x-checker-data:
type: anitya
project-id: 1628
stable-only: true
url-template: https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-$version.tar.bz2
cleanup:
- '*'
- name: libffi-static
config-opts:
- --disable-shared
sources:
- type: archive
url: https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
sha256: 540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620
x-checker-data:
type: anitya
project-id: 1611
stable-only: true
url-template: https://github.com/libffi/libffi/releases/download/v$version/libffi-$version.tar.gz
cleanup:
- '*'
- name: libidn2-static
# TODO: add libunistring dependency?
config-opts:
- --disable-shared
sources:
- type: archive
url: https://ftp.gnu.org/gnu/libidn/libidn2-2.3.3.tar.gz
sha256: f3ac987522c00d33d44b323cae424e2cffcb4c63c6aa6cd1376edacbf1c36eb0
x-checker-data:
type: anitya
project-id: 5597
stable-only: true
url-template: https://ftp.gnu.org/gnu/libidn/libidn2-$version.tar.gz
cleanup:
- '*'
- name: libjpeg-turbo-static
buildsystem: cmake
config-opts:
- -DENABLE_SHARED=OFF
- -DENABLE_STATIC=ON
- -DWITH_JPEG8=ON
sources:
- type: archive
url: https://downloads.sourceforge.net/sourceforge/libjpeg-turbo/libjpeg-turbo-2.1.4.tar.gz
sha256: d3ed26a1131a13686dfca4935e520eb7c90ae76fbc45d98bb50a8dc86230342b
x-checker-data:
type: anitya
project-id: 1648
stable-only: true
url-template: https://downloads.sourceforge.net/sourceforge/libjpeg-turbo/libjpeg-turbo-$version.tar.gz
cleanup:
- '*'
- name: openssl-static
config-opts:
- --libdir=lib
- --openssldir=/etc/ssl
- -static
- no-ssl3-method
- enable-ec_nistp_64_gcc_128
- linux-x86_64
- -Wa,--noexecstack
install-rule: install_sw
sources:
- type: archive
url: https://www.openssl.org/source/openssl-1.1.1q.tar.gz
sha256: d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca
x-checker-data:
type: anitya
project-id: 2566
stable-only: true
versions:
<: 2.0.0
version-scheme: semantic
url-template: https://www.openssl.org/source/openssl-$version.tar.gz
- type: patch
# https://github.com/openssl/openssl/issues/14574
path: openssl-static-threads.patch
options:
- --reverse
- type: shell
commands:
- ln -s {C,c}onfigure
cleanup:
- '*'
- name: popt-static
config-opts:
- --disable-shared
sources:
- type: archive
url: http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.18.tar.gz
sha256: 5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1
x-checker-data:
type: anitya
project-id: 3689
stable-only: true
url-template: http://ftp.rpm.org/popt/releases/popt-$version0.x/popt-$version.tar.gz
cleanup:
- '*'
- name: readline-static
config-opts:
- --disable-shared
- --with-curses
sources:
- type: archive
url: https://ftp.gnu.org/gnu/readline/readline-8.1.2.tar.gz
sha256: 7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6
x-checker-data:
type: anitya
project-id: 4173
stable-only: true
url-template: https://ftp.gnu.org/gnu/readline/readline-$version.tar.gz
- type: patch
path: readline-set-devenv-defaults.patch
cleanup:
- '*'
modules:
- name: ncurses-static
config-opts:
- --without-dlsym
- --with-terminfo-dirs=${datadir}/share/terminfo:/var/lib/devenv/share/terminfo:/usr/share/terminfo
#- --with-default-terminfo-dir=${datadir}/terminfo
- --disable-db-install
- --enable-widec
- --enable-pc-files
- --with-normal
- --with-cxx
- --with-cxx-binding
- --without-ada
- --without-debug
- --without-manpages
- --without-progs
- --without-tests
post-install:
- ln -s libncursesw.a ${FLATPAK_DEST}/lib/libcurses.a
- ln -s libncursesw.a ${FLATPAK_DEST}/lib/libncurses.a
- ln -s ncursesw.pc ${FLATPAK_DEST}/lib/pkgconfig/tinfo.pc
- ln -s ncursesw.pc ${FLATPAK_DEST}/lib/pkgconfig/curses.pc
- ln -s ncursesw.pc ${FLATPAK_DEST}/lib/pkgconfig/ncurses.pc
sources:
- type: archive
url: https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.3.tar.gz
sha256: 97fc51ac2b085d4cde31ef4d2c3122c21abc217e9090a43a30fc5ec21684e059
x-checker-data:
type: anitya
project-id: 234776
stable-only: true
url-template: https://ftp.gnu.org/pub/gnu/ncurses/ncurses-$version.tar.gz
- type: shell
commands:
- install -dm755 ${FLATPAK_DEST}/lib/pkgconfig
cleanup:
- '*'
- name: tcl-static # depends on zlib
subdir: unix
config-opts:
- --mandir=${prefix}/share/man
- --disable-shared
- --enable-threads
- --enable-64bit
post-install:
- ln -sr ${FLATPAK_DEST}/bin/tclsh* ${FLATPAK_DEST}/bin/tclsh
# no write permission breaks strip
- chmod u+w ${FLATPAK_DEST}/lib/libtcl*
sources:
- type: archive
url: https://downloads.sourceforge.net/sourceforge/tcl/tcl8.6.12-src.tar.gz
sha256: 26c995dd0f167e48b11961d891ee555f680c175f7173ff8cb829f4ebcde4c1a6
x-checker-data:
type: anitya
project-id: 4941
stable-only: true
url-template: https://downloads.sourceforge.net/sourceforge/tcl/tcl$version-src.tar.gz
- type: shell
commands:
- rm -rf pkgs/sqlite3*
- sed -i 's/enable-shared/disable-shared/' unix/Makefile.in
cleanup:
- '*'
- name: xxhash-static
no-autogen: true
make-args:
- lib
make-install-args:
- prefix=${FLATPAK_DEST}
sources:
- type: archive
url: https://github.com/Cyan4973/xxHash/archive/v0.8.1/xxhash-0.8.1.tar.gz
sha256: 3bb6b7d6f30c591dd65aaaff1c8b7a5b94d81687998ca9400082c739a690436c
x-checker-data:
type: anitya
project-id: 17583
stable-only: true
url-template: https://github.com/Cyan4973/xxHash/archive/v$version/xxhash-$version.tar.gz
- type: shell
commands:
- sed -e '/$(INSTALL_PROGRAM) $(LIBXXH)/d' -e '/ln -sf $(LIBXXH)/d' -i Makefile
cleanup:
- '*'
# Libraries: Level2
- name: gdbm-static # depends on readline
config-opts:
- --disable-shared
- --enable-libgdbm-compat
sources:
- type: archive
url: https://ftp.gnu.org/gnu/gdbm/gdbm-1.23.tar.gz
sha256: 74b1081d21fff13ae4bd7c16e5d6e504a4c26f7cde1dca0d963a484174bbcacd
x-checker-data:
type: anitya
project-id: 882
stable-only: true
url-template: https://ftp.gnu.org/gnu/gdbm/gdbm-$version.tar.gz
- type: shell
commands:
- sed -i '/SUBDIRS =/ s/po //' Makefile.{am,in}
cleanup:
- '*'
- name: krb5-static
subdir: src
config-opts:
- --localstatedir=/var/lib
- --sbindir=${prefix}/bin
- --enable-static
- --disable-shared
- --disable-nls
make-args:
- CFLAGS+=-fcommon
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.20/krb5-1.20.tar.gz
sha256: 7e022bdd3c851830173f9faaa006a230a0e0fdad4c953e85bff4bf0da036e12f
x-checker-data:
type: html
url: https://kerberos.org/dist/
version-pattern: Kerberos V5 Release ([\d\.-]+) - current release
url-template: https://kerberos.org/dist/krb5/$version0.$version1/krb5-$version.tar.gz
cleanup:
- '*'
- name: libarchive-static # depends on acl bzip2 expat lz4 openssl xz zlib zstd
config-opts:
- --disable-shared
- --disable-bsdcat
- --disable-bsdcpio
- --disable-bsdtar
- --without-xml2
sources:
- type: archive
url: http://www.libarchive.org/downloads/libarchive-3.6.1.tar.xz
sha256: 5a411aceb978f43e626f0c2d1812ddd8807b645ed892453acabd532376c148e6
x-checker-data:
type: anitya
project-id: 1558
stable-only: true
url-template: http://www.libarchive.org/downloads/libarchive-$version.tar.xz
cleanup:
- '*'
- name: libevent-static # depends on openssl
# TODO: try again to build static lib with cmake
config-opts:
- --disable-shared
- --enable-openssl
sources:
- type: archive
url: https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
sha256: 92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
x-checker-data:
type: anitya
project-id: 1606
stable-only: true
url-template: https://github.com/libevent/libevent/releases/download/release-$version-stable/libevent-$version-stable.tar.gz
cleanup:
- '*'
- name: libpng-static # depends on zlib
config-opts:
- --enable-static
make-args:
- CPPFLAGS=-I${FLATPAK_DEST}/include
sources:
- type: archive
url: http://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.gz
sha256: daeb2620d829575513e35fecc83f0d3791a620b9b93d800b763542ece9390fb4
x-checker-data:
type: anitya
project-id: 1705
stable-only: true
url-template: http://downloads.sourceforge.net/libpng/libpng-$version.tar.gz
cleanup:
- '*'
- name: libssh-static # depends on openssl zlib
buildsystem: cmake
builddir: true
config-opts:
# wrong detection of zlib includedir prepend /usr/include before musl includedir
- -DZLIB_INCLUDE_DIR=/usr/lib/sdk/devenv/include
- -DWITH_GSSAPI=OFF
- -DBUILD_SHARED_LIBS=OFF
- -DUNIT_TESTING=OFF
- -DWITH_EXAMPLES=OFF
sources:
- type: archive
url: https://www.libssh.org/files/0.10/libssh-0.10.4.tar.xz
sha256: 07392c54ab61476288d1c1f0a7c557b50211797ad00c34c3af2bbc4dbc4bd97d
x-checker-data:
type: anitya
project-id: 1729
stable-only: true
url-template: https://www.libssh.org/files/$version0.$version1/libssh-$version.tar.xz
cleanup:
- '*'
- name: libxml2-static # depends on ncurses readline xz zlib
# TODO: test if icu should be enabled
config-opts:
- --enable-static
- --without-python
sources:
- type: archive
url: https://download.gnome.org/sources/libxml2/2.10/libxml2-2.10.2.tar.xz
sha256: d240abe6da9c65cb1900dd9bf3a3501ccf88b3c2a1cb98317d03f272dda5b265
x-checker-data:
type: anitya
project-id: 1783
stable-only: true
url-template: https://download.gnome.org/sources/libxml2/$version0.$version1/libxml2-$version.tar.xz
cleanup:
- '*'
- name: pcre-static # depends on bzip2 readline zlib
config-opts:
- --disable-shared
sources:
- type: archive
url: http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-8.45.tar.gz
sha256: 4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09
x-checker-data:
type: anitya
project-id: 2610
stable-only: true
url-template: http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-$version.tar.gz
cleanup:
- '*'
- name: pcre2-static # depends on bzip2 readline zlib
config-opts:
- --disable-shared
- --enable-pcre2-16
- --enable-pcre2-32
- --enable-jit
post-install:
- rm ${FLATPAK_DEST}/bin/pcre2{grep,test}
sources:
- type: archive
url: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.40/pcre2-10.40.tar.gz
sha256: ded42661cab30ada2e72ebff9e725e745b4b16ce831993635136f2ef86177724
x-checker-data:
type: anitya
project-id: 5832
stable-only: true
url-template: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$version/pcre2-$version.tar.gz
cleanup:
- '*'
- name: sqlite-static # depends on readline tcl(util) zlib
config-opts:
- --disable-shared
- --disable-tcl
- --enable-fts3
- --enable-fts4
- --enable-fts5
- --enable-rtree
make-args:
- LTLINK_EXTRAS=-all-static
sources:
- type: archive
url: https://github.com/sqlite/sqlite/archive/version-3.39.2/sqlite-version-3.39.2.tar.gz
sha256: d981f7c1c237e34121176061e3fc5922ca85c9242c7aab0e5a2f19bd5179b5e7
x-checker-data:
#type: html
#url: https://www.sqlite.org/download.html
#version-pattern: sqlite-src-([\d]+).zip
#url-template: https://www.sqlite.org/2022/sqlite-src-$version.zip
type: anitya
project-id: 4877
stable-only: true
url-template: https://github.com/sqlite/sqlite/archive/version-$version/sqlite-version-$version.tar.gz
cleanup:
- '*'
# Libraries: Level3
- name: glib2-static # depends on libffi pcre zlib
# NOTE: need a recent meson version
buildsystem: meson
config-opts:
- --default-library=static
- -Dselinux=disabled
- -Dxattr=false
- -Dlibmount=disabled
- -Dtests=false
- -Dnls=disabled
- -Dglib_debug=disabled
- -Dglib_assert=false
- -Dglib_checks=false
- -Dlibelf=disabled
sources:
- type: archive
url: https://download.gnome.org/sources/glib/2.72/glib-2.72.3.tar.xz
sha256: 4a39a2f624b8512d500d5840173eda7fa85f51c109052eae806acece85d345f0
x-checker-data:
type: gnome
name: glib
cleanup:
- '*'
- name: libsasl-static # depends on gdbm openssl
# TODO: evaluate adding dependencies krb5 liblsap mariadb postgresql sqlite
config-opts:
- --sbindir=${prefix}/bin
- --disable-shared
- --disable-sample
make-args:
- CCLD=$(CC) -all-static
sources:
- type: archive
url: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.28/cyrus-sasl-2.1.28.tar.gz
sha256: 7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c
x-checker-data:
type: anitya
project-id: 13280
stable-only: true
url-template: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-$version/cyrus-sasl-$version.tar.gz
- type: shell
commands:
- sed -i '/LIBS=/ s/\(-lgdbm\)/\1 -lgdbm_compat/' configure
cleanup:
- '*'
# Libraries: Level4
- name: librsvg-static # depends on bzip2 glib2 expat libffi libpng libxml2 pcre
config-opts:
- --disable-shared
- --enable-pixbuf-loader
- --disable-gtk-doc
- --disable-introspection
- --disable-vala
make-args: &librsvg-make-args
- HOME=$(FLATPAK_BUILDER_BUILDDIR)
- CARGO_HOME=$(FLATPAK_BUILDER_BUILDDIR)/cargo
- RUST_TARGET_SUBDIR=x86_64-unknown-linux-musl/release
make-install-args: *librsvg-make-args
sources:
- type: archive
url: https://download.gnome.org/sources/librsvg/2.54/librsvg-2.54.5.tar.xz
sha256: 4f03190f45324d1fa1f52a79dfcded1f64eaf49b3ae2f88eedab0c07617cae6e
x-checker-data:
type: gnome
name: librsvg
stable-only: true
- librsvg-cargo-sources.json # flatpak-cargo-generator.py Cargo.lock -o librsvg-cargo-sources.json
- type: file
dest: .cargo
dest-filename: config
path: librsvg-cargo-config
cleanup:
- '*'
modules:
- name: gdk-pixbuf2-static # depends on glib2 libjpeg-turbo libpng
# TODO: add depends libtiff and enable loader
buildsystem: meson
config-opts:
- --default-library=static
- -Dpng=enabled
- -Dtiff=disabled
- -Djpeg=enabled
#- -Dbuiltin_loaders=png,jpeg
- -Dbuiltin_loaders=all
- -Dgtk_doc=false
- -Ddocs=false
- -Dintrospection=disabled
- -Dman=false
#- -Drelocatable=false
- -Dtests=false
- -Dinstalled_tests=false
- -Dgio_sniffing=false
post-install:
- rm -f ${FLATPAK_DEST}/lib/gdk-pixbuf-2.0/2.*/loaders.cache
sources:
- type: archive
url: https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-2.42.9.tar.xz
sha256: 28f7958e7bf29a32d4e963556d241d0a41a6786582ff6a5ad11665e0347fc962
x-checker-data:
type: gnome
name: gdk-pixbuf
stable-only: true
- type: shell
commands:
- sed -i '/subdir(.po.)/d' meson.build
cleanup:
- '*'
- name: pango-static
buildsystem: meson
config-opts:
- --default-library=static
- -Dgtk_doc=false
- -Dintrospection=disabled
- -Dfontconfig=disabled
- -Dlibthai=disabled
- -Dcairo=enabled
- -Dxft=disabled
- -Dfreetype=enabled
sources:
- type: archive
url: https://download.gnome.org/sources/pango/1.50/pango-1.50.9.tar.xz
sha256: 1b636aabf905130d806372136f5e137b6a27f26d47defd9240bf444f6a4fe610
x-checker-data:
type: gnome
name: pango
versions:
<: '1.90'