forked from cfgnunes/nautilus-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pkg-map.sh
More file actions
958 lines (879 loc) · 19.4 KB
/
.pkg-map.sh
File metadata and controls
958 lines (879 loc) · 19.4 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
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
#!/usr/bin/env bash
# shellcheck disable=SC2034
# This file centralizes dependency definitions for the scripts.
# Description:
# This array defines the mapping between a dependency key and its
# corresponding package names across different package managers.
#
# Note: If the package name contains the '~' character, it means that the part
# before '~' represents the package name used for installation, while the part
# after '~' represents the package name used for installation verification.
# This is useful in systems like NixOS, where the installed package name may
# differ from the one provided during installation.
declare -A PKG_MAP=(
["7za"]="
termux: p7zip
apt: p7zip
dnf: p7zip
pacman: p7zip
nix: p7zip
zypper: 7zip
guix: p7zip
xbps: p7zip
brew: p7zip
"
["ar"]="
termux: binutils
apt: binutils
dnf: binutils
pacman: binutils
nix: binutils
zypper: binutils
guix: binutils
xbps: binutils
brew: binutils
"
["axel"]="
termux: axel
apt: axel
dnf: axel
pacman: axel
nix: axel
zypper: axel
guix: axel
xbps: axel
brew: axel
"
["baobab"]="
termux: baobab
apt: baobab
dnf: baobab
pacman: baobab
nix: baobab
zypper: baobab
guix: baobab
xbps: baobab
brew:
"
["bsdtar"]="
termux: libarchive
apt: libarchive-tools
dnf: bsdtar
pacman: libarchive
nix: libarchive
zypper: bsdtar
guix: libarchive
xbps: bsdtar
brew: libarchive
"
["bzip2"]="
termux: bzip2
apt: bzip2
dnf: bzip2
pacman: bzip2
nix: bzip2
zypper: bzip2
guix: bzip2
xbps: bzip2
brew: bzip2
"
["bzip3"]="
termux: bzip3
apt: bzip3
dnf: bzip3
pacman: bzip3
nix: bzip3
zypper: bzip3
guix:
xbps: bzip3
brew: bzip3
"
["cabextract"]="
termux: cabextract
apt: cabextract
dnf: cabextract
pacman: cabextract
nix: cabextract
zypper: cabextract
guix: cabextract
xbps: cabextract
brew: cabextract
"
["cjxl"]="
termux: libjxl-progs
apt: libjxl-tools
dnf: libjxl-utils
pacman: libjxl
nix: libjxl
zypper: libjxl-tools
guix: libjxl
xbps: libjxl-tools
brew:
"
["clamscan"]="
termux: clamav
apt: clamav
dnf: clamav
pacman: clamav
nix: clamav
zypper: clamav
guix: clamav
xbps: clamav
brew:
"
["compare"]="
termux: imagemagick
apt: imagemagick
dnf: ImageMagick
pacman: imagemagick
nix: imagemagick
zypper: ImageMagick
guix: imagemagick
xbps: ImageMagick
brew:
"
["convert"]="
termux: imagemagick
apt: imagemagick
dnf: ImageMagick
pacman: imagemagick
nix: imagemagick
zypper: ImageMagick
guix: imagemagick
xbps: ImageMagick
brew:
"
["cpio"]="
termux: cpio
apt: cpio
dnf: cpio
pacman: cpio
nix: cpio
zypper: cpio
guix: cpio
xbps: cpio
brew: cpio
"
["curl"]="
termux: curl
apt: curl
dnf: curl
pacman: curl
nix: curl
zypper: curl
guix: curl
xbps: curl
brew:
"
["dar"]="
termux: dar
apt: dar
dnf: dar
pacman: dar
nix: dar
zypper: dar
guix:
xbps: dar
brew: dar
"
["diffpdf"]="
termux:
apt: diffpdf
dnf: diffpdf
pacman: diffpdf
nix: diffpdf
zypper:
guix:
xbps:
brew:
"
["dig"]="
termux: dnsutils
apt: bind9-dnsutils
dnf: bind-utils
pacman: bind
nix: dnsutils
zypper: bind-utils
guix: bind
xbps: bind
brew: bind
"
["exiftool"]="
termux: exiftool
apt: libimage-exiftool-perl
dnf: perl-Image-ExifTool
pacman: perl-image-exiftool
nix: exiftool
zypper: exiftool
guix: perl-image-exiftool
xbps: exiftool
brew:
"
["ffmpeg"]="
termux: ffmpeg
apt: ffmpeg
dnf: ffmpeg-free
pacman: ffmpeg
nix: ffmpeg
zypper: ffmpeg
guix: ffmpeg
xbps: ffmpeg
brew:
"
["filelight"]="
termux: filelight
apt: filelight
dnf: filelight
pacman: filelight
nix: kdePackages.filelight
zypper: filelight
guix: filelight
xbps: filelight
brew:
"
["foremost"]="
termux:
apt: foremost
dnf: foremost
pacman: foremost
nix: foremost
zypper:
guix:
xbps: foremost
brew: foremost
"
["ghex"]="
termux: ghex
apt: ghex
dnf: ghex
pacman: ghex
nix: ghex
zypper: ghex
guix: ghex
xbps: ghex
brew:
"
["git"]="
termux: git
apt: git
dnf: git
pacman: git
nix: git
zypper: git
guix: git
xbps: git
brew:
"
["gpg"]="
termux: gnupg
apt: gnupg
dnf: gnupg2
pacman: gnupg
nix: gnupg
zypper: gpg2
guix: gnupg
xbps: gnupg
brew:
"
["gs"]="
termux: ghostscript
apt: ghostscript
dnf: ghostscript
pacman: ghostscript
nix: ghostscript
zypper: ghostscript
guix: ghostscript
xbps: ghostscript
brew:
"
["gunzip"]="
termux: gzip
apt: gzip
dnf: gzip
pacman: gzip
nix: gzip
zypper: gzip
guix: gzip
xbps: gzip
brew: gzip
"
["gzip"]="
termux: gzip
apt: gzip
dnf: gzip
pacman: gzip
nix: gzip
zypper: gzip
guix: gzip
xbps: gzip
brew: gzip
"
["iconv"]="
termux: libiconv
apt: libc-bin
dnf: glibc-common
pacman: glibc
nix: glibc
zypper: glibc
guix: glibc
xbps: glibc
brew:
"
["id3v2"]="
termux: id3v2
apt: id3v2
dnf: id3v2
pacman: id3v2
nix: id3v2
zypper: id3v2
guix:
xbps: id3v2
brew: id3v2
"
["inkscape"]="
termux:
apt: inkscape
dnf: inkscape
pacman: inkscape
nix: inkscape
zypper: inkscape
guix: inkscape
xbps: inkscape
brew:
"
["kdiff3"]="
termux:
apt: kdiff3
dnf: kdiff3
pacman: kdiff3
nix: kdiff3
zypper: kdiff3
guix:
xbps: kdiff3
brew:
"
["lenspect"]="
termux:
apt:
dnf:
pacman:
nix:
zypper:
guix:
xbps:
brew:
flatpak: io.github.vmkspv.lenspect
"
["lha"]="
termux: lhasa
apt: lhasa
dnf: lhasa
pacman: lhasa
nix: lhasa
zypper: lhasa
guix: lhasa
xbps: lhasa
brew: lhasa
"
["lrzip"]="
termux: lrzip
apt: lrzip
dnf:
pacman: lrzip
nix: lrzip
zypper: lrzip
guix: lrzip
xbps: lrzip
brew: lrzip
"
["lz4"]="
termux: lz4
apt: lz4
dnf: lz4
pacman: lz4
nix: lz4
zypper: lz4
guix: lz4
xbps: lz4
brew: lz4
"
["lzip"]="
termux: lzip
apt: lzip
dnf: lzip
pacman: lzip
nix: lzip
zypper: lzip
guix: lzip
xbps: lzip
brew: lzip
"
["lzma"]="
termux: xz-utils
apt: xz-utils
dnf: lzma
pacman: xz
nix: xz
zypper: lzma
guix: xz
xbps: xz
brew: xz
"
["lzop"]="
termux: lzop
apt: lzop
dnf: lzop
pacman: lzop
nix: lzop
zypper: lzop
guix: lzop
xbps: lzop
brew: lzop
"
["mediainfo"]="
termux: mediainfo
apt: mediainfo
dnf: mediainfo
pacman: mediainfo
nix: mediainfo
zypper: mediainfo
guix: mediainfo
xbps: mediainfo
brew:
"
["meld"]="
termux: meld
apt: meld
dnf: meld
pacman: meld
nix: meld
zypper: meld
guix: meld
xbps: meld
brew:
"
["mp3gain"]="
termux: mp3gain
apt: mp3gain
dnf: mp3gain
pacman:
nix: mp3gain
zypper: mp3gain
guix:
xbps:
brew: mp3gain
"
["nmap"]="
termux: nmap
apt: nmap
dnf: nmap
pacman: nmap
nix: nmap
zypper: nmap
guix: nmap
xbps: nmap
brew:
"
["okteta"]="
termux:
apt: okteta
dnf: okteta
pacman: okteta
nix: okteta
zypper: okteta
guix: okteta
xbps: okteta
brew:
"
["openssl"]="
termux: openssl
apt: openssl
dnf: openssl
pacman: openssl
nix: openssl
zypper: openssl
guix: openssl
xbps: openssl
brew: openssl
"
["optipng"]="
termux: optipng
apt: optipng
dnf: optipng
pacman: optipng
nix: optipng
zypper: optipng
guix: optipng
xbps: optipng
brew: optipng
"
["pandoc"]="
termux: pandoc
apt: pandoc
dnf: pandoc-cli
pacman: pandoc
nix: pandoc
zypper: pandoc
guix: pandoc
xbps: pandoc
brew: pandoc
"
["pdfinfo"]="
termux: poppler
apt: poppler-utils
dnf: poppler-utils
pacman: poppler
nix: poppler-utils
zypper: poppler-tools
guix: poppler
xbps: poppler
brew:
"
["perl"]="
termux: perl
apt: perl-base
dnf: perl-base
pacman: perl-base
nix: perl
zypper: perl-base
guix: perl
xbps: perl
brew: perl
"
["photorec"]="
termux: testdisk
apt: testdisk
dnf: testdisk
pacman: testdisk
nix: testdisk
zypper: photorec
guix: testdisk
xbps: testdisk
brew: testdisk
"
["ping"]="
termux: inetutils
apt: iputils-ping
dnf: iputils
pacman: iputils
nix: iputils
zypper: iputils
guix: iputils
xbps: iputils
brew: iputils
"
["qpdf"]="
termux: qpdf
apt: qpdf
dnf: qpdf
pacman: qpdf
nix: qpdf
zypper: qpdf
guix: qpdf
xbps: qpdf
brew: qpdf
"
["rdfind"]="
termux: rdfind
apt: rdfind
dnf: rdfind
pacman: rdfind
nix: rdfind
zypper: rdfind
guix:
xbps: rdfind
brew: rdfind
"
["rhash"]="
termux: rhash
apt: rhash
dnf: rhash
pacman: rhash
nix: rhash
zypper: rhash
guix: rhash
xbps: rhash
brew: rhash
"
["rsync"]="
termux: rsync
apt: rsync
dnf: rsync
pacman: rsync
nix: rsync
zypper: rsync
guix: rsync
xbps: rsync
brew: rsync
"
["tar"]="
termux: tar
apt: tar
dnf: tar
pacman: tar
nix: gnutar
zypper: tar
guix: tar
xbps: tar
brew: gnu-tar
"
["unar"]="
termux: unar
apt: unar
dnf: unar
pacman: unarchiver
nix: unar
zypper: unar
guix:
xbps: unar
brew: unar
"
["unrar"]="
termux: unrar
apt: unrar
dnf: unrar
pacman: unrar
nix: unrar
zypper: unrar
guix:
xbps: unrar
brew:
"
["unsquashfs"]="
termux:
apt: squashfs-tools
dnf: squashfs-tools
pacman: squashfs-tools
nix: squashfsTools~squashfs
zypper: squashfs
guix: squashfs-tools
xbps: squashfs-tools
brew: squashfs
"
["unzip"]="
termux: unzip
apt: unzip
dnf: unzip
pacman: unzip
nix: unzip
zypper: unzip
guix: unzip
xbps: unzip
brew: unzip
"
["wl-paste"]="
termux:
apt: wl-clipboard
dnf: wl-clipboard
pacman: wl-clipboard
nix: wl-clipboard
zypper: wl-clipboard
guix: wl-clipboard
xbps: wl-clipboard
brew:
"
["xclip"]="
termux: xclip
apt: xclip
dnf: xclip
pacman: xclip
nix: xclip
zypper: xclip
guix: xclip
xbps: xclip
brew:
"
["xorriso"]="
termux: xorriso
apt: xorriso
dnf: xorriso
pacman: xorriso
nix: xorriso~libisoburn
zypper: xorriso
guix: xorriso
xbps: xorriso
brew: xorriso
"
["xxd"]="
termux: xxd
apt: xxd
dnf: xxd
pacman: xxd
nix: xxd
zypper: xxd
guix: xxd
xbps: xxd
brew:
"
["xz"]="
termux: xz-utils
apt: xz-utils
dnf: xz
pacman: xz
nix: xz
zypper: xz
guix: xz
xbps: xz
brew: xz
"
["zpaq"]="
termux: zpaq
apt: zpaq
dnf: zpaq
pacman:
nix: zpaq
zypper: zpaq
guix: zpaq
xbps: zpaq
brew: zpaq
"
["zstd"]="
termux: zstd
apt: zstd
dnf: zstd
pacman: zstd
nix: zstd
zypper: zstd
guix: zstd
xbps: zstd
brew: zstd
"
["latexmk"]="
termux: texlive-bin
apt: latexmk
dnf: latexmk
pacman: texlive-binextra
nix: texlivePackages.latexmk~latexmk
zypper: texlive-latexmk
guix: texlive-bin
xbps: texlive-latexmk
brew:
"
["localc"]="
termux:
apt: libreoffice-calc
dnf: libreoffice-calc
pacman: libreoffice
nix: libreoffice
zypper: libreoffice-calc
guix: libreoffice
xbps: libreoffice-calc
brew:
"
["loimpress"]="
termux:
apt: libreoffice-impress
dnf: libreoffice-impress
pacman: libreoffice
nix: libreoffice
zypper: libreoffice-impress
guix: libreoffice
xbps: libreoffice-impress
brew:
"
["lowriter"]="
termux:
apt: libreoffice-writer
dnf: libreoffice-writer
pacman: libreoffice
nix: libreoffice
zypper: libreoffice-writer
guix: libreoffice
xbps: libreoffice-writer
brew:
"
["ocrmypdf"]="
termux:
apt: ocrmypdf
dnf: ocrmypdf
pacman:
nix: ocrmypdf
zypper:
guix:
xbps: python3-ocrmypdf
brew:
"
["pdfjam"]="
termux: texlive-bin
apt: texlive-extra-utils
dnf: texlive-pdfjam
pacman: texlive-basic texlive-binextra texlive-latexextra
nix: texliveSmall~texlive texlivePackages.pdfjam~pdfjam
zypper: texlive-pdfjam-bin
guix: texlive-bin
xbps: texlive
brew:
"
["scour"]="
termux:
apt: scour
dnf: python3-scour
pacman: scour
nix: scour
zypper: python3-scour~scour
guix: python-scour
xbps: python3-scour
brew:
"
["sox"]="
termux: sox
apt: sox libsox-fmt-mp3
dnf: sox
pacman: sox
nix: sox
zypper: sox
guix: sox
xbps: sox
brew: sox
"
["tesseract-lang-$TEMP_DATA_TASK"]="
termux: tesseract
apt: tesseract-ocr tesseract-ocr-$TEMP_DATA_TASK
dnf: tesseract tesseract-langpack-$TEMP_DATA_TASK
pacman: tesseract tesseract-data-$TEMP_DATA_TASK
nix: tesseract
zypper: tesseract tesseract-ocr-traineddata-$TEMP_DATA_TASK
guix: tesseract-ocr
xbps: tesseract-ocr tesseract-ocr-$TEMP_DATA_TASK
brew:
"
["texlive"]="
termux: texlive-bin
apt: texlive \
texlive-fonts-extra \
texlive-latex-extra \
texlive-publishers \
texlive-science \
texlive-xetex
dnf: texlive-base \
texlive-collection-fontsextra \
texlive-collection-latexextra \
texlive-collection-publishers \
texlive-collection-mathscience \
texlive-collection-xetex
pacman: texlive-basic \
texlive-fontsextra \
texlive-latexextra \
texlive-publishers \
texlive-mathscience \
texlive-xetex
nix: texliveFull~texlive
zypper: texlive-collection-basic \
texlive-collection-fontsextra \
texlive-collection-latexextra \
texlive-collection-publishers \
texlive-collection-mathscience \
texlive-collection-xetex
guix: texlive
xbps: texlive-bin
brew:
"
)
# Description:
# This array defines commands that need to be executed after a package is
# installed. These commands are usually required for proper initialization,
# configuration, or updates that the package manager alone does not handle.
declare -A POST_INSTALL=(
["clamav"]='*:rm -f /var/log/clamav/freshclam.log; sed -i "/^NotifyClamd/d" /etc/clamav/freshclam.conf 2>/dev/null; freshclam --quiet'
["imagemagick"]='*:find /etc -type f -path "/etc/ImageMagick-*/policy.xml" 2>/dev/null -exec sed -i -e "s/rights=\"none\" pattern=\"PDF\"/rights=\"read|write\" pattern=\"PDF\"/g" -e "s/name=\"disk\" value=\".GiB\"/name=\"disk\" value=\"8GiB\"/g" {} +'
)