From 1c4ec18f8dd8aa0ff72909cf6b4129a9f832ee01 Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Mon, 20 May 2024 19:43:38 +0200 Subject: [PATCH] New package: zed-0.136.2 --- srcpkgs/zed/patches/fix-desktop-file.patch | 16 +++++++++++++++ srcpkgs/zed/template | 23 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 srcpkgs/zed/patches/fix-desktop-file.patch create mode 100644 srcpkgs/zed/template diff --git a/srcpkgs/zed/patches/fix-desktop-file.patch b/srcpkgs/zed/patches/fix-desktop-file.patch new file mode 100644 index 00000000000000..40d4a48071da1a --- /dev/null +++ b/srcpkgs/zed/patches/fix-desktop-file.patch @@ -0,0 +1,16 @@ +diff --git a/crates/zed/resources/zed.desktop b/crates/zed/resources/zed.desktop +index 7920e63..06b36b9 100644 +--- a/crates/zed/resources/zed.desktop ++++ b/crates/zed/resources/zed.desktop +@@ -4,9 +4,9 @@ Type=Application + Name=Zed + GenericName=Text Editor + Comment=A high-performance, multiplayer code editor. +-TryExec=zed ++TryExec=Zed + StartupNotify=true +-Exec=zed ++Exec=Zed + Icon=zed + Categories=TextEditor;Development;IDE; + Keywords=zed; diff --git a/srcpkgs/zed/template b/srcpkgs/zed/template new file mode 100644 index 00000000000000..9acf5087f34181 --- /dev/null +++ b/srcpkgs/zed/template @@ -0,0 +1,23 @@ +# Template file for 'zed' +pkgname=zed +version=0.136.2 +revision=1 +archs="x86_64* aarch64*" +build_style=cargo +make_install_args="--path crates/zed" +hostmakedepends="pkg-config protobuf" +makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-devel" +depends="git" +checkdepends="xorg-fonts" +short_desc="High-performance, multiplayer code editor" +maintainer="SpidFightFR " +license="GPL-3.0-or-later, Apache-2.0, AGPL-3.0-or-later" +homepage="https://zed.dev/" +distfiles="https://github.com/zed-industries/zed/archive/v${version}.tar.gz" +checksum="caf4f16fcc8490fc220a507d2287cfac6a84041c03bd9f51b5b4f63f0704737e" + +post_install() { + vlicense ${wrksrc}/LICENSE-AGPL + vinstall ${wrksrc}/crates/zed/resources/zed.desktop 644 usr/share/applications + vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/pixmaps zed.png +}