Package Details: deno-git 1.28.0.r8202.g7aa8e9c0351e-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
Conflicts: deno
Provides: deno
Submitter: AlK
Maintainer: None
Last Packager: haawda
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-24 21:50 (UTC)
Last Updated: 2022-11-15 22:00 (UTC)

Required by (25)

Sources (1)

Latest Comments

haawda commented on 2022-08-12 14:47 (UTC)

Your pkgver function gives 1.24.0.r75.gee2f4e745 on a current checkout, but deno is at 1.24.3. I suggest using this one instead:

pkgver() {
  cd "$pkgname"
  printf %s.r%s.g%s  $(git tag | cut -c2- |sort -n|tail -1) $(git rev-list --count HEAD) \
     $(git log|head -1| cut -d" " -f2|cut -c1-12)
}

It gives 1.24.3.r7712.gee2f4e745c33.

haawda commented on 2022-03-01 22:28 (UTC)

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

jrudess commented on 2021-08-28 17:40 (UTC)

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

Marv commented on 2021-05-10 17:55 (UTC)

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 (UTC)

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

Marv commented on 2021-05-06 17:19 (UTC)

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 (UTC)

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 (UTC)

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 (UTC) (edited on 2019-05-19 13:32 (UTC) by Nautigsam)

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 (UTC)

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?