mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add unbuilt zed to updater-zed-0.205.5 * updater-zed-0.205.5: Build Run on linux/amd64. * updater-zed-0.205.5: Package File Update Run on linux/amd64 container. * updater-zed-0.205.5: Package File Update Run on linux/arm/v7 container. --------- Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
54 lines
1.8 KiB
Ruby
54 lines
1.8 KiB
Ruby
require 'buildsystems/rust'
|
|
|
|
class Zed < RUST
|
|
description 'Zed is a high-performance, multiplayer code editor'
|
|
homepage 'https://zed.dev/'
|
|
version '0.205.5'
|
|
license 'GPL-3, AGPL-3, Apache-2.0'
|
|
compatibility 'x86_64'
|
|
source_url 'https://github.com/zed-industries/zed.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
x86_64: 'acd4fbb4a6266cf6157abbfd5fe1922189c88b4ac65ea4e391faa4ade71c9a0c'
|
|
})
|
|
|
|
depends_on 'alsa_lib' # R
|
|
depends_on 'cargo_about' => :build
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libx11' # R
|
|
depends_on 'libxcb' # R
|
|
depends_on 'libxkbcommon' # R
|
|
depends_on 'llvm_dev' => :build
|
|
depends_on 'ruby_solargraph' # L
|
|
depends_on 'rust' => :build
|
|
depends_on 'zlib' # R
|
|
|
|
rust_flags '-C link-args=-Wl,--disable-new-dtags,-rpath,$ORIGIN/../lib -C symbol-mangling-version=v0 --cfg tokio_unstable'
|
|
rust_packages 'zed'
|
|
|
|
def self.prebuild
|
|
system 'script/generate-licenses'
|
|
end
|
|
|
|
def self.install
|
|
system "DO_STARTUP_NOTIFY=true APP_CLI=zed APP_ICON=zed \
|
|
APP_ARGS='%U' APP_NAME=Zed \
|
|
envsubst < 'crates/zed/resources/zed.desktop.in' > zed.desktop"
|
|
FileUtils.install 'target/release/zed', "#{CREW_DEST_PREFIX}/bin/zed", mode: 0o755
|
|
FileUtils.install 'zed.desktop', "#{CREW_DEST_PREFIX}/share/applications/zed.desktop", mode: 0o644
|
|
FileUtils.install 'crates/zed/resources/app-icon.png', "#{CREW_DEST_PREFIX}/share/icons/hicolor/512x512/apps/zed.png", mode: 0o644
|
|
FileUtils.install 'crates/zed/resources/app-icon@2x.png', "#{CREW_DEST_PREFIX}/share/icons/hicolor/1024x1024/apps/zed.png", mode: 0o644
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'zed' to get started.\n"
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{CREW_PREFIX}/.config/zed")
|
|
end
|
|
end
|