mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/manifest-tool: new aport
This commit is contained in:
parent
687c90dea7
commit
7fa0e0731b
37
testing/manifest-tool/APKBUILD
Normal file
37
testing/manifest-tool/APKBUILD
Normal 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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user