Skip to content

Commit 9640597

Browse files
committed
New package: zeditor-0.230.2
1 parent 1785acd commit 9640597

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/assets/settings/default.json b/assets/settings/default.json
2+
index efb0cc9..08fc993 100644
3+
--- a/assets/settings/default.json
4+
+++ b/assets/settings/default.json
5+
@@ -1240,9 +1240,9 @@
6+
// Control what info is collected by Zed.
7+
"telemetry": {
8+
// Send debug info like crash reports.
9+
- "diagnostics": true,
10+
+ "diagnostics": false,
11+
// Send anonymized usage data like what languages you're using Zed with.
12+
- "metrics": true,
13+
+ "metrics": false
14+
},
15+
// Whether to disable all AI features in Zed.
16+
//

srcpkgs/zed/template

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Template file for 'zed'
2+
pkgname=zed
3+
version=0.231.1
4+
revision=1
5+
archs="x86_64* aarch64*"
6+
build_style=cargo
7+
make_build_args="--package cli --package zed" # --package remote_server # reason below
8+
make_check_args="--workspace"
9+
hostmakedepends="pkg-config cmake gettext perl libzstd-devel bzip2-devel protobuf"
10+
makedepends="gettext-devel elfutils-devel alsa-lib-devel fontconfig-devel glib-devel libva-devel libxcb-devel libxkbcommon-devel libzstd-devel openssl-devel wayland-devel vulkan-loader sqlite-devel libX11-devel libgit2-1.9-devel"
11+
short_desc="High-performance multiplayer code editor"
12+
maintainer="JudahJL <judahlegy@gmail.com>"
13+
license="GPL-3.0-or-later"
14+
homepage="https://zed.dev/"
15+
distfiles="https://github.com/zed-industries/zed/archive/refs/tags/v${version}.tar.gz"
16+
checksum=1e7f356e3498d432501033578c5d4a6f56aff611b9204a35ad6245b8b33b2abf
17+
make_check=ci-skip # too slow and memory-intensive for build environment(OS killed test process and compilation & test on average used ~50 Gb of memory locally)
18+
# https://github.com/void-linux/void-packages/actions/runs/24108190211/job/70336496775 for reference
19+
20+
pre_build() {
21+
echo -n stable > crates/zed/RELEASE_CHANNEL
22+
export RELEASE_VERSION="${version}"
23+
export ZED_UPDATE_EXPLANATION="Please use 'xbps-install -Su' to update."
24+
export ZED_BUNDLE=true
25+
26+
if [ "$CROSS_BUILD" ]; then
27+
export PKG_CONFIG_ALLOW_CROSS=1
28+
29+
# workaround the cc-rs mixing CFLAGS for host and target.
30+
# https://github.com/rust-lang/cc-rs/issues/1469
31+
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
32+
CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
33+
LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
34+
CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
35+
CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
36+
LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
37+
CFLAGS="" CXXFLAGS="" LDFLAGS=""
38+
fi
39+
}
40+
41+
do_install() {
42+
vbin "target/${RUST_TARGET}/release/cli" zed-cli
43+
vinstall "target/${RUST_TARGET}/release/zed" 755 usr/libexec zed-editor
44+
# TODO 1: https://github.com/zed-industries/zed/blob/c372f246a0790da012dddbe3935ee2758a3a9c3b/script/bundle-linux#L87-L88 seperately build remote_server. will include it later.
45+
# TODO 2: confirm install location of remote_server
46+
# vinstall "target/${RUST_TARGET}/release/remote_server" 755 usr/libexec
47+
48+
export APP_NAME="Zed"
49+
export APP_CLI="zed-cli"
50+
export APP_ICON="zed"
51+
export APP_ARGS="%U"
52+
export DO_STARTUP_NOTIFY="true"
53+
54+
envsubst < "crates/zed/resources/zed.desktop.in" > "dev.zed.Zed.desktop"
55+
vinstall "dev.zed.Zed.desktop" 644 usr/share/applications
56+
57+
vinstall "crates/zed/resources/app-icon.png" 644 usr/share/icons/hicolor/512x512/apps zed.png
58+
vinstall "crates/zed/resources/app-icon@2x.png" 644 usr/share/icons/hicolor/1024x1024/apps zed.png
59+
}

0 commit comments

Comments
 (0)