Create build and install script for p7zip.

This commit is contained in:
Captain ALM 2024-06-21 14:31:45 +01:00
parent 4986fe32c6
commit 8429972928
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
2 changed files with 34 additions and 0 deletions

14
p7zip-1602/7zFM.desktop Executable file
View File

@ -0,0 +1,14 @@
[Desktop Entry]
Name=7z File Manager
Comment=Create and modify an archive
Keywords=7z;7zip;7-zip;zip;tar;extract;unpack;
Path=/usr/local/bin
TryExec=7zFM
Exec=7zFM %U
StartupNotify=true
Terminal=false
Type=Application
Icon=org.gnome.ArchiveManager
Categories=GTK;Utility;Archiving;Compression;
MimeType=application/bzip2;application/gzip;application/vnd.android.package-archive;application/vnd.ms-cab-compressed;application/vnd.debian.binary-package;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-archive;application/x-arj;application/x-brotli;application/x-bzip-brotli-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-chrome-extension;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lz4;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lz4-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-source-rpm;application/x-rzip;application/x-rzip-compressed-tar;application/x-tar;application/x-tarz;application/x-tzo;application/x-stuffit;application/x-war;application/x-xar;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zstd-compressed-tar;application/x-zoo;application/zip;application/zstd;
X-GNOME-UsesNotifications=true

20
p7zip-1602/bainst.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
echo "[+] Cleaning..."
make clean;
echo "[+] Building..."
make -j$(nproc --all) all5;
if [ $? -eq 0 ]; then
echo "[+] Install Started!"
sudo cp bin/7z.so /usr/local/bin/ -f;
sudo cp bin/7zCon.sfx /usr/local/bin/ -f;
sudo cp bin/7zG /usr/local/bin/ -f;
sudo cp bin/Client7z /usr/local/bin/ -f;
sudo cp bin/LzmaCon /usr/local/bin/ -f;
sudo cp bin/7zFM_do_not_use /usr/local/bin/7zFM -f;
sudo mkdir -p /usr/local/bin/Codecs;
sudo cp bin/Codecs/* /usr/local/bin/Codecs -f;
sudo cp 7zFM.desktop /usr/share/applications/ -f;
echo "[+] Install Completed!"
else
echo "[-] Build Failed!"
fi;