aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/zed/template
blob: 2caedded8a72ac529e654b5f5cc2bebc66f12894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
}