mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Rust rebuild, add rust buildsystem, rebuild uu_coreutils, add zellij, update getrealdeps.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust CREW_VALID_BUILDSYSTEMS logic. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add Package to buildsystems list. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update License Year. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix Rubocop workflow warning. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
42 lines
1.5 KiB
Ruby
42 lines
1.5 KiB
Ruby
# Adapted from Arch Linux zellij PKGBUILD at:
|
|
# https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=zellij
|
|
|
|
require 'buildsystems/rust'
|
|
|
|
class Zellij < RUST
|
|
description 'A terminal multiplexer'
|
|
homepage 'https://zellij.dev'
|
|
version '0.42.2'
|
|
license 'MIT'
|
|
compatibility 'x86_64'
|
|
source_url 'https://github.com/zellij-org/zellij.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
x86_64: '4a0eb5bee4f910d6681613f557c1e081a616171df007d86e2be902108f793ea5'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'protobuf' => :build
|
|
depends_on 'rust' => :build
|
|
depends_on 'zlib' # R
|
|
|
|
rust_targets 'wasm32-wasip1'
|
|
|
|
rust_build_extras do
|
|
system './target/release/zellij setup --generate-auto-start bash > target/bash.d.zellij'
|
|
system './target/release/zellij setup --generate-completion bash > target/zellij.bash'
|
|
system './target/release/zellij setup --generate-completion fish > target/zellij.fish'
|
|
system './target/release/zellij setup --generate-completion zsh > target/zellij.zsh'
|
|
end
|
|
|
|
rust_install_extras do
|
|
FileUtils.install 'target/bash.d.zellij', "#{CREW_DEST_PREFIX}/etc/bash.d/zellij", mode: 0o755
|
|
FileUtils.install 'target/zellij.bash', "#{CREW_DEST_PREFIX}/share/bash-completion/completions/zellij", mode: 0o644
|
|
FileUtils.install 'target/zellij.fish', "#{CREW_DEST_PREFIX}/share/fish/vendor_completions.d/zellij.fish", mode: 0o644
|
|
FileUtils.install 'target/zellij.zsh', "#{CREW_DEST_PREFIX}/share/zsh/site-functions/_zellij", mode: 0o644
|
|
end
|
|
end
|