aports/testing/manifest-tool/APKBUILD
2025-03-16 14:15:03 +01:00

37 lines
1.1 KiB
Text

# Contributor: Phil Estes <estesp@gmail.com>
# Maintainer: Phil Estes <estesp@gmail.com>
pkgname=manifest-tool
pkgver=2.1.9
_pkgcommit=8f23245e6b92eac2f11226809217a161bffe20b8
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="
40c6dc5852edfde0554fd3256cd5f1109a30d6880222088d31b43ada959d27d6985df40ecf0eea7140d49de596ac46050007fa6ef3cca68f40556fdf8ee07e03 manifest-tool-2.1.9.tar.gz
"