Advertisement
Guest User

opentofu PKGBUILD

a guest
Oct 20th, 2023
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # Maintainer: Marcel Campello <marcel@prafrentex.com.br>
  2. pkgname=opentofu
  3. pkgver=1.6.0_alpha3
  4. pkgrel=1
  5. pkgdesc="The open source infrastructure as code tool."
  6. arch=('any')
  7. url="https://opentofu.org"
  8. license=('MPL2')
  9. makedepends=(
  10. 'git'
  11. 'go>=1.20.7'
  12. )
  13. source=("${pkgname}.zip::https://github.com/opentofu/opentofu/archive/refs/tags/v${pkgver//_/-}.zip")
  14. sha256sums=('SKIP')
  15.  
  16. build() {
  17. export GOPATH="${srcdir}/go"
  18. export CGO_ENABLED=0
  19.  
  20. cd "${srcdir}/${pkgname}-${pkgver//_/-}/cmd/tofu"
  21. pwd
  22. go install
  23. }
  24.  
  25. package() {
  26. cd "${srcdir}/go"
  27. install bin/tofu -t "${pkgdir}/usr/bin" -Dm 0755
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement