#shellcheck disable=SC2034
#shellcheck disable=SC2154
#stable channel


pkg_name=automate-scaffolding-go
pkg_origin=chef
pkg_description="Scaffolding for Automate Go Applications internally at Chef Software Inc."
pkg_maintainer="Chef Software Inc. <support@chef.io>"
pkg_version="0.1.0"
pkg_license=('Chef-MLSA')
pkg_source=nosuchfile.tar.gz
pkg_deps=(
 core/go1_24/1.24.4  # This is only pinned to force a scaffolding rebuild to this version
 core/git
 
)

do_build() {
  return 0
}

do_verify() {
  return 0
}

do_unpack() {
  return 0
}

do_download() {
  return 0
}

# Install scaffolding libraries from the plan into the package.
do_install() {
  install -D -m 0644 "$PLAN_CONTEXT/../lib/scaffolding.sh" "$pkg_prefix/lib/scaffolding.sh"
  install -D -m 0644 "$PLAN_CONTEXT/../lib/scaffolding-go.sh" "$pkg_prefix/lib/scaffolding-go.sh"
  install -D -m 0644 "$PLAN_CONTEXT/../../../lib/scaffolding/shared.sh" "$pkg_prefix/lib/shared.sh"
  install -d "$pkg_prefix/lib/support/"
  install -D -m 0644 "$PLAN_CONTEXT/../../../lib/scaffolding/support/"* "$pkg_prefix/lib/support/"
  install -d "$pkg_prefix/lib/templates/"
  install -D -m 0644 "$PLAN_CONTEXT/../../../lib/scaffolding/templates/"* "$pkg_prefix/lib/templates/"
}



