From 9fde2a12fb79fbdcd10a24a11d612349809cb76e Mon Sep 17 00:00:00 2001 From: Toby Merz Date: Thu, 8 Oct 2020 09:38:07 +0200 Subject: [PATCH] New package: deno-1.4.6 --- srcpkgs/deno/template | 39 +++++++++++++++++++++++++++++++++++++++ srcpkgs/deno/update | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/deno/template create mode 100644 srcpkgs/deno/update diff --git a/srcpkgs/deno/template b/srcpkgs/deno/template new file mode 100644 index 00000000000..18b724860cd --- /dev/null +++ b/srcpkgs/deno/template @@ -0,0 +1,39 @@ +# Template file for 'deno' +pkgname=deno +version=1.4.6 +revision=1 +build_helper="rust" +hostmakedepends="cargo pkg-config curl unzip git python2 ninja clang nodejs + gobject-introspection" +depends="libglib-devel" +short_desc="Simple, modern and secure runtime for JavaScript and TypeScript" +maintainer="shizonic " +license="MIT" +homepage="https://deno.land" +distfiles="https://github.com/denoland/deno/archive/v${version}.tar.gz" +checksum=802bd22bcb00c1f2331f054b83820dfcdd7f79cc135bcd062d057f35fec9cba4 + +# Arm/AArch builds are still WIP +# See: https://github.com/denoland/deno/issues/4862 +case "$XBPS_TARGET_MACHINE" in + armv*|aarch*) broken="ERROR: Arm/AArch builds are still WIP\\nhttps://github.com/denoland/deno/issues/4862" +esac + + +pre_build() { + git clone https://gn.googlesource.com/gn + cd gn + python build/gen.py + ninja -C out + PATH="$(pwd)/out:$PATH" + export PATH +} + +do_build() { + V8_FROM_SOURCE=1 cargo build -vv --release --target ${RUST_TARGET} +} + +do_install() { + vbin target/${RUST_TARGET}/release/deno + vlicense LICENSE +} diff --git a/srcpkgs/deno/update b/srcpkgs/deno/update new file mode 100644 index 00000000000..8741fea29c2 --- /dev/null +++ b/srcpkgs/deno/update @@ -0,0 +1,2 @@ +site="https://github.com/denoland/deno/releases" +pattern="\bv\K(\d+\.\d+\.\d+)\b"