From 5c3d42646152c319cc78c07e98fc6372236eb672 Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Mon, 20 May 2024 19:43:38 +0200 Subject: [PATCH] New package: zed-0.138.4 --- .../0001-tweak-default-conf-for-privacy.patch | 39 +++++++++++++++++++ srcpkgs/zed/template | 25 ++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch create mode 100644 srcpkgs/zed/template diff --git a/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch b/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch new file mode 100644 index 00000000000000..fd09df07d2a23a --- /dev/null +++ b/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch @@ -0,0 +1,39 @@ +diff --git a/assets/settings/initial_user_settings.json b/assets/settings/initial_user_settings.json +index 75d4a02..df0f7c5 100644 +--- a/assets/settings/initial_user_settings.json ++++ b/assets/settings/initial_user_settings.json +@@ -7,6 +7,33 @@ + // custom settings, run the `open default settings` command + // from the command palette or from `Zed` application menu. + { ++ //default font size for text in the UI + "ui_font_size": 16, +- "buffer_font_size": 16 ++ ++ //default font size fr text in the editor ++ "buffer_font_size": 16, ++ ++ // Features that can be globally enabled or disabled ++ "features": { ++ // Disable copilot by default. ++ "copilot": false, ++ "inline_completion_provider": "none" ++ }, ++ "assistant": { ++ // Version of this setting. ++ "version": "1", ++ // Whether the assistant is enabled. ++ "enabled": false ++ }, ++ // Control what info is collected by Zed. ++ "telemetry": { ++ // Don't send debug info like crash reports. ++ "diagnostics": false, ++ // Don't send anonymized usage data like what languages you're using Zed with. ++ "metrics": false ++ }, ++ // Settings specific to journaling ++ "journal": { ++ "hour_format": "hour24" ++ } + } diff --git a/srcpkgs/zed/template b/srcpkgs/zed/template new file mode 100644 index 00000000000000..3c5404b92ec822 --- /dev/null +++ b/srcpkgs/zed/template @@ -0,0 +1,25 @@ +# Template file for 'zed' +pkgname=zed +version=0.138.4 +revision=1 +archs="x86_64* aarch64*" +build_style=cargo +make_install_args="--path crates/zed" +hostmakedepends="pkg-config protobuf gettext" +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="78eff0eec799820d07e7bcd13246612e541492c90e848910d4d62e63788d6952" + +post_install() { + vlicense ${wrksrc}/LICENSE-AGPL + APP_NAME="Zed" DO_STARTUP_NOTIFY="true" APP_ICON="zed" envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/zed.desktop + vinstall ${wrksrc}/crates/zed/resources/zed.desktop.in 644 usr/share/applications/zed.desktop + vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png +}