Package Details: deno-git 1.9.2.r89.ga051a7f7b-1

Git Clone URL: https://aur.archlinux.org/deno-git.git (read-only, click to copy)
Package Base: deno-git
Description: A secure runtime for JavaScript and TypeScript
Upstream URL: https://deno.land
Licenses: MIT
Provides: deno
Submitter: AlK
Maintainer: AlK
Last Packager: AlK
Votes: 1
Popularity: 0.000000
First Submitted: 2018-08-24 21:50
Last Updated: 2021-05-08 18:26

Required by (11)

Sources (1)

Latest Comments

jrudess commented on 2021-08-28 17:40

The PKGBUILD is missing a conflict with the official 'deno' package in community.

Marv commented on 2021-05-10 17:55

It works, but the dependencies do not require python or nodejs Also would replace cargo with plain rustup

AlK commented on 2021-05-08 18:26

Thanks for the headsup. I updated the PKGBUILD, let me know if it works for you.

Marv commented on 2021-05-06 17:19

Deno changed the buildprocess, got this running:

# Maintainer: Benoît Zugmeyer <bzugmeyer@gmail.com>
pkgname=deno-git
pkgver=1.9.2.r83.gf208e6a26
pkgrel=1
pkgdesc="A secure TypeScript runtime on V8"
arch=('i686' 'x86_64')
url="https://github.com/denoland/deno"
provides=('deno')
license=('MIT')
makedepends=(git rustup)
source=("deno-git::git+https://github.com/denoland/deno")
md5sums=(SKIP)

pkgver() {
  cd "$pkgname"
  ver=$(git describe --long --tags)

  # replace standard library tag with deno release tag
  if [[ $ver =~ ^std ]]; then
    tag1=$(cut -d- -f1 <<< $ver)
    tag2=$(git tag --contains $tag1 | grep ^v | tail -n1)
    ver=$(sed "s#^$tag1#$tag2#" <<< $ver)
  fi

  sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' <<< $ver
}

prepare() {
  cd "$pkgname"
  git submodule update --init --recursive
  # Do not overwrite rustup default toolchain if already installed
  echo "stable" > rust-toolchain
  rustup target add wasm32-unknown-unknown
  rustup target add wasm32-wasi
}

build() {
  cd "$pkgname"
  cargo build --release --locked -vv
}

check() {
  cd "$pkgname"
  ./target/release/deno run cli/tests/002_hello.ts
}

package() {
  cd "$pkgname"
  install -dm755 "${pkgdir}"/usr/bin
  install -m755 target/release/deno "${pkgdir}"/usr/bin
}

Would love if we could get a fix going

christoph.gysin commented on 2020-08-11 07:56

Could you update pkgver() to use the correct release tag? Currently it uses the std library tag instead.

pkgver() {
  cd "$pkgname"
  ver=$(git describe --long --tags)

  # replace standard library tag with deno release tag
  if [[ $ver =~ ^std ]]; then
    tag1=$(cut -d- -f1 <<< $ver)
    tag2=$(git tag --contains $tag1 | grep ^v | tail -n1)
    ver=$(sed "s#^$tag1#$tag2#" <<< $ver)
  fi

  sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' <<< $ver
}

AlK commented on 2019-05-19 19:04

Thank you Nautigsam for the heads up. I fixed the build, let me know if there is still an issue.

Nautigsam commented on 2019-05-19 13:32

You should update the PKGBUILD to fix compilation errors. You should also change the version because the AUR helpers do not detect updates. If you are not willing to maintain this package I can handle it.

Nautigsam commented on 2019-05-06 19:22

I get the following error during build :

ninja: error: unknown target ':deno', did you mean 'deno'?

Is is a problem with my system or maybe the PKGBUILD?