Files
chromebrew/packages/deno.rb
chromebrew-actions[bot] e7c850d2ae deno -> 2.7.11 in updater-deno-2.7.11 — deno: 2.7.10 → 2.7.11 (#15384)
* deno -> 2.7.11 in updater-deno-2.7.11

* updater-deno-2.7.11: Package File Update Run on linux/amd64 container.

---------

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2026-04-03 09:57:45 +00:00

31 lines
997 B
Ruby

# Adapted from Arch Linux deno PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/deno/trunk/PKGBUILD
require 'buildsystems/rust'
class Deno < RUST
description 'A secure runtime for JavaScript and TypeScript'
homepage 'https://deno.land'
version '2.7.11'
license 'MIT'
compatibility 'x86_64'
source_url 'https://github.com/denoland/deno.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
x86_64: '3d0049f4fb315eefc6fef6996bfabb1579502cd92b01b06973c69e8d051a33ca'
})
depends_on 'gcc_lib' => :executable
depends_on 'glibc' => :executable
depends_on 'llvm_dev' => :build
depends_on 'protobuf' => :build
def self.install
FileUtils.install 'target/release/deno', "#{CREW_DEST_PREFIX}/bin/deno", mode: 0o755
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/bash-completion/completions"
system "./target/release/deno completions bash > #{CREW_DEST_PREFIX}/share/bash-completion/completions/deno"
end
end