# Template file for 'zed' pkgname=zed version=0.153.6 revision=1 archs="x86_64* aarch64*" build_style=cargo make_install_args="--path crates/zed" make_check_args="-- --test-threads 1" hostmakedepends="pkg-config protobuf gettext mold clang18" makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-1.8-devel sqlite-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="17ce3e750011e32e33c232b6e58fcf032d18d19567d3b54336f6a219542ca9f2" post_install() { vlicense ${wrksrc}/LICENSE-AGPL APP_NAME="Zed" DO_STARTUP_NOTIFY="true" APP_ICON="zed" APP_CLI="zed" envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/zed.desktop vinstall ${wrksrc}/crates/zed/resources/zed.desktop 644 usr/share/applications/ vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png }