zed-bin: add new zed-bin package

This commit is contained in:
Jared Allard 2025-03-04 16:58:22 -08:00
parent 095b404ace
commit fa072fc909
Signed by: jaredallard
SSH key fingerprint: SHA256:wyRyyv28jBYw8Yp/oABNPUYvbGd6hyZj23XVXEm5G/U
4 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,4 @@
DIST zed-bin-0.176.1-amd64.tar.gz 89206929 BLAKE2B ebfa63239410d92adc50236aa2867f987c07c25ffb27a08dab9462d799c85d7ff0c0902a0765fbe0701e64506c55625401500818e5894bd554e259808f24845d SHA512 68cdb585da082353106d4982fc55d04b0353ba225622690d10e4856d651772c8366026f2a09beec9e5b80ed0f05413516ad699ab91c9f97318a247e0fd96082c
DIST zed-bin-0.176.1-arm64.tar.gz 87338342 BLAKE2B a225d49e8097703c4007e1f83d5e46179f462963c7484ab933b6e8ef436773f6f346ab7602e0531345a33cfc87ce210414abcefcf9726b61e8b18dd6f014f38d SHA512 38f56630711964efc0b0b91b5bf1c63ed3a8c2e81b144893e3e54abd933e89df3550fca0ff3a10626c88084b498fd86e8ba07586434f18c5c09918e2b0c8f6e6
DIST zed-bin-0.176.2-amd64.tar.gz 89211786 BLAKE2B 62256f88d01ecd9a8a274770e6737d289961c85781f6505bd40fd13c52dd5c9d03a883517d27d851fb388a1a75ddd77cb28ec380045b8d6ed67e6a3cc9163a8e SHA512 c9348d41afc483347d2bb42922b7fd9dcf63e4d0e2e482e5d4331902c4662157e5e7b98b1b326eb499d5400215085c63fff80a35eb7ac64eba48aa3a8ba2afd9
DIST zed-bin-0.176.2-arm64.tar.gz 87338226 BLAKE2B 4613ac438b4ef8c6098c6a4c6ef1405b1a93a905a7b3a6217caef690e174aca2f421541a30c946adbf75e6cd6798d206553a4dc16967a86360e08f423294a06e SHA512 e883569b5c1be0c3702e53ee2727530b076c06eb42ef2eea89e252e73dc281a04fbd30ca6c4c6a2b44f5e595808a8b2d39f71c456d7428940cfe10bf951485b1

View file

@ -0,0 +1,72 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# shellcheck shell=bash
EAPI=8
inherit desktop xdg unpacker
DESCRIPTION="The fast, collaborative code editor"
HOMEPAGE="https://zed.dev https://github.com/zed-industries/zed"
SRC_URI="
amd64? ( https://github.com/zed-industries/zed/releases/download/v${PV}/zed-linux-x86_64.tar.gz -> ${P}-amd64.tar.gz )
arm64? ( https://github.com/zed-industries/zed/releases/download/v${PV}/zed-linux-aarch64.tar.gz -> ${P}-arm64.tar.gz )
"
RESTRICT="bindist mirror strip test"
LICENSE="GPL-3+"
SLOT="0"
QA_PREBUILT="*"
DEPEND="
app-arch/zstd:=
app-misc/jq
dev-db/sqlite:3
>=dev-libs/libgit2-1.9.0:=
dev-libs/mimalloc
dev-libs/openssl:0/3
dev-libs/protobuf
dev-libs/wayland
dev-libs/wayland-protocols
dev-util/wayland-scanner
dev-util/vulkan-tools
|| (
media-fonts/dejavu
media-fonts/cantarell
media-fonts/noto
media-fonts/ubuntu-font-family
)
media-libs/alsa-lib
media-libs/fontconfig
media-libs/vulkan-loader[X]
net-analyzer/openbsd-netcat
net-misc/curl
sys-libs/zlib
x11-libs/libxcb:=
x11-libs/libxkbcommon[X]
"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
src_prepare() {
default
xdg_environment_reset
}
src_install() {
S="${S}/zed.app"
newbin "${S}/bin/zed" zed
exeinto "/usr/libexec"
newexe "${S}/libexec/zed-editor" zed-editor
doicon -s 512 "${S}/share/icons/hicolor/512x512/apps/zed.png"
doicon -s 1024 "${S}/share/icons/hicolor/1024x1024/apps/zed.png"
domenu "${S}/share/applications/zed.desktop"
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View file

@ -0,0 +1,72 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# shellcheck shell=bash
EAPI=8
inherit desktop xdg unpacker
DESCRIPTION="The fast, collaborative code editor"
HOMEPAGE="https://zed.dev https://github.com/zed-industries/zed"
SRC_URI="
amd64? ( https://github.com/zed-industries/zed/releases/download/v${PV}/zed-linux-x86_64.tar.gz -> ${P}-amd64.tar.gz )
arm64? ( https://github.com/zed-industries/zed/releases/download/v${PV}/zed-linux-aarch64.tar.gz -> ${P}-arm64.tar.gz )
"
RESTRICT="bindist mirror strip test"
LICENSE="GPL-3+"
SLOT="0"
QA_PREBUILT="*"
DEPEND="
app-arch/zstd:=
app-misc/jq
dev-db/sqlite:3
>=dev-libs/libgit2-1.9.0:=
dev-libs/mimalloc
dev-libs/openssl:0/3
dev-libs/protobuf
dev-libs/wayland
dev-libs/wayland-protocols
dev-util/wayland-scanner
dev-util/vulkan-tools
|| (
media-fonts/dejavu
media-fonts/cantarell
media-fonts/noto
media-fonts/ubuntu-font-family
)
media-libs/alsa-lib
media-libs/fontconfig
media-libs/vulkan-loader[X]
net-analyzer/openbsd-netcat
net-misc/curl
sys-libs/zlib
x11-libs/libxcb:=
x11-libs/libxkbcommon[X]
"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
src_prepare() {
default
xdg_environment_reset
}
src_install() {
S="${S}/zed.app"
newbin "${S}/bin/zed" zed
exeinto "/usr/libexec"
newexe "${S}/libexec/zed-editor" zed-editor
doicon -s 512 "${S}/share/icons/hicolor/512x512/apps/zed.png"
doicon -s 1024 "${S}/share/icons/hicolor/1024x1024/apps/zed.png"
domenu "${S}/share/applications/zed.desktop"
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View file

@ -14,6 +14,12 @@ app-admin/op-cli-bin:
options:
repository: "deb https://downloads.1password.com/linux/debian/amd64 stable main"
package: 1password-cli
app-editors/zed-bin:
resolver: git
options:
url: https://github.com/zed-industries/zed
ignore_versions:
- v0.999999.0
dev-util/mise:
resolver: git
options: