diff --git a/testing/tfupdate/APKBUILD b/testing/tfupdate/APKBUILD new file mode 100644 index 00000000000..10d63b1b41e --- /dev/null +++ b/testing/tfupdate/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Thiago Perrotta +pkgname=tfupdate +pkgver=0.8.2 +pkgrel=0 +pkgdesc="Update version constraints in your Terraform configurations" +url="https://github.com/minamijoyo/tfupdate" +arch="all" +license="MIT" +makedepends="go" +subpackages="$pkgname-doc" +source="$pkgname$pkgver.tar.gz::https://github.com/minamijoyo/tfupdate/archive/refs/tags/v$pkgver.tar.gz" +options="net" + +build() { + go build -o tfupdate-bin . +} + +check() { + go test ./... +} + +package() { + install -Dm755 tfupdate-bin "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +sha512sums=" +58cc4c3ff680a7a9b7fa9977e1250f1f30eb2e6a996dd8adfc0377ed51377bc2dd8b5ba16fae78a8e030ba226e7984f751d4fd9e48737a0c94e43bf635248d8f tfupdate0.8.2.tar.gz +"