Package Details: terraform-provider-hcloud v1.47.0-3

Git Clone URL: https://aur.archlinux.org/opentofu-provider-hcloud.git (read-only, click to copy)
Package Base: opentofu-provider-hcloud
Description: Terraform Hetzner Cloud provider
Upstream URL: https://github.com/hetznercloud/terraform-provider-hcloud
Licenses: MPL-2.0
Submitter: taba
Maintainer: taba
Last Packager: taba
Votes: 0
Popularity: 0.000000
First Submitted: 2024-05-14 09:11 (UTC)
Last Updated: 2024-05-26 19:16 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

CommanderCrisp commented on 2024-05-26 19:26 (UTC)

@taba, just did a clean installation, worked a treat and appreciate the hint about opentofu. Thanks for everything.

taba commented on 2024-05-26 19:20 (UTC)

@CommanderCrisp problem should be fixed. I suggest you switch to opentofu if you haven't already.

CommanderCrisp commented on 2024-05-26 17:25 (UTC)

Upstream is gone and 404s.

I abused your PKGBUILD until it installed, this worked:

# Maintainer: Giorgi Taba K'obakhidze <t@gtk.ge>
# Contributor: Simon Walker <s.r.walker101@googlemail.com>

# https://wiki.archlinux.org/title/Go_package_guidelines
# https://developer.hashicorp.com/terraform/cli/config/config-file#implied-local-mirror-directories

pkgname=(terraform-provider-hcloud)
_pkgname="terraform"
_pkgver=1.47.0
pkgver="v${_pkgver}"
pkgrel=2
arch=("x86_64")
url="https://github.com/hetznercloud/${pkgname}"
license=("MPL-2.0")
makedepends=("git" "go")
checkdepends=("go")
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=(6d8b71b527314d83e132dd67b8c92950f9adf2528d755d7f4211949e38686997)

prepare() {
  cd "${pkgname}-${_pkgver}"
  mkdir -p build
}

build() {
  cd "${pkgname}-${_pkgver}"

  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"

  export MAKEFLAGS="${MAKEFLAGS} CGO_ENABLED=1"
  GOBIN=$PWD/build make build
}

check() {
    cd "${_pkgname}-${_pkgver}"
    make test
}

_package_common() {
  cd "${pkgname}-${_pkgver}"

  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"

  install -Dm644 {CHANGELOG,README}.md -t "${pkgdir}/usr/share/doc/${pkgname}"
  cp -r website/docs "$pkgdir/usr/share/doc/${pkgname}"
}

package_terraform-provider-hcloud() {
  pkgdesc="OpenTofu Hetzner Cloud provider"

  _package_common

  install -Dm755 build/"${pkgname}" \
    -t "${pkgdir}/usr/share/terraform/plugins/registry.opentofu.org/hetznercloud/hcloud/${_pkgver}/linux_amd64"
}

package_opentofu-provider-hcloud() {
  pkgdesc="OpenTofu Hetzner Cloud provider"

  _package_common

  install -Dm755 build/"${pkgname}" \
    -t "${pkgdir}/usr/share/terraform/plugins/registry.opentofu.org/hetznercloud/hcloud/${_pkgver}/linux_amd64"
}