mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-25 07:31:05 +01:00
27 lines
1.2 KiB
Bash
27 lines
1.2 KiB
Bash
# Template file for 'zed' from https://github.com/void-linux/void-packages/pull/50476
|
||
# Will be removed after merge
|
||
|
||
pkgname=zed
|
||
version=0.140.5
|
||
revision=1
|
||
archs="x86_64* aarch64*"
|
||
build_style=cargo
|
||
make_install_args="--path crates/zed"
|
||
hostmakedepends="pkg-config protobuf gettext mold"
|
||
makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel
|
||
libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-devel llvm17-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="a634d8a29738446d76b299ea9a662beade7b7933f43deccb432e9f52cfa2b68b"
|
||
|
||
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 644 usr/share/applications/
|
||
vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png
|
||
}
|