pkg_name=wal-e
pkg_version=1.0.2
pkg_origin=starkandwayne
pkg_maintainer="Justin Carter <justin@starkandwayne.com>"
pkg_license=('wal-e license')
pkg_description="Continuous Archiving for Postgres"
pkg_upstream_url="https://github.com/wal-e/wal-e"
pkg_source=https://github.com/wal-e/wal-e/archive/v${pkg_version}.tar.gz
pkg_shasum=f3bd4171917656fef3829c9d993684d26c86eef0038ac3da7f12bae9122c6fc3
pkg_deps=(core/envdir core/python)
pkg_bin_dirs=(bin)

do_download() {
  return 0
}

do_verify() {
  return 0
}

do_unpack() {
  return 0
}

do_prepare() {
  pyvenv "$pkg_prefix"
  # shellcheck source=/dev/null
  source "$pkg_prefix/bin/activate"
}

do_build() {
  return 0
}

do_install() {
  pip install "wal-e[aws]==$pkg_version"
  # Write out versions of all pip packages to package
  pip freeze > "$pkg_prefix/requirements.txt"
}

pkg_name=wal-e
pkg_version=1.0.2
pkg_origin=starkandwayne
pkg_maintainer="Justin Carter <justin@starkandwayne.com>"
pkg_license=('wal-e license')
pkg_description="Continuous Archiving for Postgres"
pkg_upstream_url="https://github.com/wal-e/wal-e"
pkg_source=https://github.com/wal-e/wal-e/archive/v${pkg_version}.tar.gz
pkg_shasum=f3bd4171917656fef3829c9d993684d26c86eef0038ac3da7f12bae9122c6fc3
pkg_deps=(starkandwayne/envdir core/python)
pkg_bin_dirs=(bin)

do_download() {
  return 0
}

do_verify() {
  return 0
}

do_unpack() {
  return 0
}

do_prepare() {
  pyvenv "$pkg_prefix"
  # shellcheck source=/dev/null
  source "$pkg_prefix/bin/activate"
}

do_build() {
  return 0
}

do_install() {
  pip install "wal-e[aws]==$pkg_version"
  # Write out versions of all pip packages to package
  pip freeze > "$pkg_prefix/requirements.txt"
}

Fix wal-e dep on envdir
Fix wal-e dep on envdir
