mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
34 lines
893 B
Text
34 lines
893 B
Text
# Contributor: Thomas Kienlen <kommander@laposte.net>
|
|
# Maintainer: Thomas Kienlen <kommander@laposte.net>
|
|
pkgname=dive
|
|
pkgver=0.13.0
|
|
pkgrel=1
|
|
pkgdesc="Tool for exploring each layer in a docker image"
|
|
url="https://github.com/wagoodman/dive"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="docker"
|
|
makedepends="go"
|
|
source="https://github.com/wagoodman/dive/archive/v$pkgver/dive-$pkgver.tar.gz"
|
|
options="chmod-clean !check" # No test suite
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build \
|
|
-trimpath \
|
|
-ldflags "
|
|
-X main.version=$pkgver
|
|
" \
|
|
-o bin/dive .
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/dive "$pkgdir/usr/bin/dive"
|
|
}
|
|
|
|
sha512sums="
|
|
397170dba8cb2cc12af0d3a6c98ada34a7f9975e8350951b5e775ad6d499a481db37d3abd02e51908c97b615cfffc9ce283ec22ff523618565cbbb6218a064aa dive-0.13.0.tar.gz
|
|
"
|