From 593ade1074ea7e01d96a88fc33b9d62d9cfe28fa Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Tue, 2 Jul 2024 07:16:55 -0400 Subject: [PATCH] testing/tfupdate: new aport --- testing/tfupdate/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/tfupdate/APKBUILD 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 +"