testing/manifest-tool: new aport

This commit is contained in:
Phil Estes 2024-03-26 15:37:30 -04:00 committed by Natanael Copa
parent 687c90dea7
commit 7fa0e0731b

View File

@ -0,0 +1,37 @@
# Contributor: Phil Estes <estesp@gmail.com>
# Maintainer: Phil Estes <estesp@gmail.com>
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
"