Skip to content

Instantly share code, notes, and snippets.

@clst

clst/PKGBUILD Secret

Created Sep 24, 2019
Embed
What would you like to do?
dive aur quick and dirty patch
# Maintainer: David Birks <david@tellus.space>
# Contributor: David Stark <david@starkers.org>
# Messed up by: JoeCool
pkgname=dive
pkgver=0.8.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/master.tar.gz")
sha256sums=('SKIP')
build() {
# Trim pwd from path
export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
mv $pkgname-master $pkgname-$pkgver
cd $pkgname-$pkgver
CGO_ENABLED=0 go build -o ./dist/dive_linux_amd64/dive --ldflags "-X main.version=$pkgver" .
}
package() {
install -Dm 755 "$srcdir/$pkgname-$pkgver/dist/dive_linux_amd64/dive" "$pkgdir/usr/bin/dive"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.