From e9c9cda87a9bead4afb8991bc4f8a508af6860bb Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Mon, 20 May 2024 19:43:38 +0200 Subject: New package: zed-0.137.6 --- srcpkgs/zed/patches/default-members-cli.patch | 24 +++++++++++++++++++ srcpkgs/zed/patches/fix-desktop-file.patch | 16 +++++++++++++ srcpkgs/zed/template | 34 +++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 srcpkgs/zed/patches/default-members-cli.patch create mode 100644 srcpkgs/zed/patches/fix-desktop-file.patch create mode 100644 srcpkgs/zed/template diff --git a/srcpkgs/zed/patches/default-members-cli.patch b/srcpkgs/zed/patches/default-members-cli.patch new file mode 100644 index 00000000000..9c142af01b5 --- /dev/null +++ b/srcpkgs/zed/patches/default-members-cli.patch @@ -0,0 +1,24 @@ +From f82770b62c69cfbfada631fb065afeb7d5a6e513 Mon Sep 17 00:00:00 2001 +From: Luca Matei Pintilie +Date: Wed, 5 Jun 2024 19:35:37 +0200 +Subject: [PATCH] Cargo.toml: add crates/cli in default-members + +--- + Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index cb58423a8..4318618ed 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -139,7 +139,7 @@ members = [ + + "tooling/xtask", + ] +-default-members = ["crates/zed"] ++default-members = ["crates/zed", "crates/cli"] + resolver = "2" + + [workspace.dependencies] +-- +2.45.1 diff --git a/srcpkgs/zed/patches/fix-desktop-file.patch b/srcpkgs/zed/patches/fix-desktop-file.patch new file mode 100644 index 00000000000..40d4a48071d --- /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 00000000000..2caedded8a7 --- /dev/null +++ b/srcpkgs/zed/template @@ -0,0 +1,34 @@ +# Template file for 'zed' +pkgname=zed +version=0.137.6 +revision=1 +archs="x86_64* aarch64*" +build_style=cargo +configure_args="--bins" +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="noto-fonts-ttf" +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="e596b4caa045886dcaa6fddebcc4c02026ad6d9a0d7984dec5a55fbf72e71e5e" + +# Used by zed during compile time to instruct the user to update whenever they want to +# https://github.com/zed-industries/zed/blob/main/docs/src/development/linux.md#technical-requirements +export ZED_UPDATE_EXPLANATION="Something something update something" + +do_install() { + # FIXME: Calling Zed crashes foot server, + # but calling zed-editor works just fine. Why? + vbin target/${RUST_TARGET}/release/cli Zed + vmkdir usr/libexec + cp target/${RUST_TARGET}/release/Zed ${DESTDIR}/usr/libexec/zed-editor + + vlicense LICENSE-AGPL + vinstall crates/zed/resources/zed.desktop 644 usr/share/applications + vinstall crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png +} -- cgit v1.2.3