Merge pull request #319050 from Vinetos/update-kchat

kchat: 2.4.0 -> 3.3.1
This commit is contained in:
Masum Reza 2024-06-21 23:13:32 +05:30 committed by GitHub
commit 47ea5bd487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,12 +5,12 @@
appimageTools.wrapType2 rec {
pname = "kchat";
version = "2.4.0";
version = "3.3.1";
src = fetchurl {
url = "https://download.storage5.infomaniak.com/kchat/kchat-desktop-${version}-linux-x86_64.AppImage";
name = "kchat-${version}.AppImage";
hash = "sha256-8mkkHod7iBhHVAL/vQCVnmwVlPGikdHhtiEaFVIayrU=";
hash = "sha256-f9wWgZSPSMP7bLZGfR5F6l/eAVHVhRmF1c7S6/qLgIA=";
};
extraInstallCommands =
@ -24,7 +24,8 @@ appimageTools.wrapType2 rec {
cp -r ${contents}/usr/* "$out"
cp "${contents}/kchat-desktop.desktop" "$out/share/applications/"
mv "$out/bin/kchat" "$out/bin/${meta.mainProgram}" || true
substituteInPlace $out/share/applications/kchat-desktop.desktop --replace 'Exec=AppRun' 'Exec=${meta.mainProgram}'
install -m 444 -D ${contents}/kchat-desktop.desktop $out/share/applications/kchat-desktop.desktop
substituteInPlace $out/share/applications/kchat-desktop.desktop --replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram}'
'';
meta = with lib; {