summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a21e63d5422c71efccb7f47ced518d5dd6bf823c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: David Birks <david@tellus.space>
# Contributor: David Stark <david@starkers.org>

pkgname=dive
pkgver=0.9.1
pkgrel=1
pkgdesc='A tool for exploring each layer in a docker image'
url='https://github.com/wagoodman/dive'
arch=('x86_64')
license=('MIT')
depends=('docker')
makedepends=('go')
conflicts=('dive-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/wagoodman/dive/archive/v$pkgver.tar.gz")
sha256sums=('33f34c3d49494facffe043c551cf100d714e7acc2ce7739260fb3879e4732dec')

build() {
  cd $pkgname-$pkgver
  go build \
    -trimpath \
    -ldflags "-X main.version=$pkgver" \
    -o bin/dive \
    .
}

package() {
  install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/dive" "$pkgdir/usr/bin/dive"
}