aports/testing/dive/APKBUILD
Michał Polański 95690efbac testing/*: rebuild with go 1.16.5
Go binaries are statically linked, security updates require rebuilds
2021-06-06 01:20:23 +02:00

31 lines
802 B
Plaintext

# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=dive
pkgver=0.10.0
pkgrel=1
pkgdesc='Tool for exploring each layer in a docker image'
url='https://github.com/wagoodman/dive'
# mips(64): go is missing
arch='all !mips !mips64'
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
build() {
go build \
-trimpath \
-ldflags "
-s -w
-X main.version=$pkgver
" \
-o bin/dive .
}
package() {
install -Dm755 bin/dive "$pkgdir/usr/bin/dive"
}
sha512sums="a027d6f694acdc7680a733df2800e255db93df450704e748778860ac16a19040be855c04238c18d63b10b2042023cf3bf5e8ac9974362decd81dc0259fd0dd1c dive-0.10.0.tar.gz"