pkg_name=handlebars-cmd
pkg_origin=core
pkg_version="0.1.4"
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('MIT')
pkg_source=nosuchfile.tar.gz
pkg_deps=(
  core/coreutils
  core/node
)
pkg_build_deps=(
  core/git
)
pkg_description="handlebars command-line tool."
pkg_upstream_url="https://github.com/DavidBabel/handlebars-cmd"
pkg_bin_dirs=(bin)

do_prepare() {
  npm config set progress false
  npm config set prefix "$pkg_prefix"
}

do_download() {
  return 0
}

do_verify() {
  return 0
}

do_unpack() {
  return 0
}

do_build() {
  return 0
}

do_install() {
  # Use handlebars-cmd branch with a recent version of handlebars.
  npm install -g "DavidBabel/$pkg_name#bc510fc"
  fix_interpreter "$pkg_prefix/bin/handlebars" core/coreutils bin/env
}

Add handlebars-cmd, a handlebars CLI tool.
Add handlebars-cmd, a handlebars CLI tool.

Signed-off-by: Yvonne Lam <5473f88a9985ce6824a12a6be5211f5455b484aa@chef.io>
