diff options
Diffstat (limited to 'srcpkgs/zed/template')
-rw-r--r-- | srcpkgs/zed/template | 34 |
1 files changed, 34 insertions, 0 deletions
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 <spidfight@swisscows.email>" +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 +} |