From 7fa0e0731b95f93fcb61c400a4b4201e91a80b56 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Tue, 26 Mar 2024 15:37:30 -0400 Subject: [PATCH] testing/manifest-tool: new aport --- testing/manifest-tool/APKBUILD | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/manifest-tool/APKBUILD diff --git a/testing/manifest-tool/APKBUILD b/testing/manifest-tool/APKBUILD new file mode 100644 index 00000000000..ae32dd5b4d2 --- /dev/null +++ b/testing/manifest-tool/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Phil Estes +# Maintainer: Phil Estes +pkgname=manifest-tool +pkgver=2.1.6 +_pkgcommit=d96ae95374f885e40b1e7de367c72ab09d7dc362 +pkgrel=1 +pkgdesc="tool for inspecting and creating multi-platform container images" +url="https://github.com/estesp/manifest-tool" +arch="all" +license="Apache-2.0" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/estesp/manifest-tool/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/manifest-tool-$pkgver/" + +export GOFLAGS="$GOFLAGS -modcacherw" +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" + +build() { + msg "Building manifest-tool" + cd v2 && go build \ + -ldflags "-X main.gitCommit=$_pkgcommit -X main.version=$pkgver" \ + -o ../manifest-tool github.com/estesp/manifest-tool/v2/cmd/manifest-tool +} + +check() { + echo "no check" +} + +package() { + install -Dm0755 manifest-tool -t "$pkgdir"/usr/bin/ +} + +sha512sums=" +0a23875928191626d474a99d4a052dc578863eef301d4e4c48a96dbf0a1c59279b6d3fb90d3cced4c01c7fa0b2d8f58feaa6612fb21c614cfacaf3b4b8692bee manifest-tool-2.1.6.tar.gz +"