diff options
author | Tony Lambiris | 2021-12-11 04:00:19 -0500 |
---|---|---|
committer | Tony Lambiris | 2021-12-11 04:00:19 -0500 |
commit | d7ae9baddce6e1afb16fc8e167a3f92592a7749c (patch) | |
tree | 9a9995cb1742227c128592c9681de34079c18624 | |
parent | 085d2d350a52e5eabd4533df0989a779dffd1c6a (diff) | |
download | aur-d7ae9baddce6e1afb16fc8e167a3f92592a7749c.tar.gz |
Version bump
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 12 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = dive-git pkgdesc = A tool for exploring each layer in a docker image pkgver = v0.10.0.r2.gc7d121b - pkgrel = 2 + pkgrel = 3 url = https://github.com/wagoodman/dive arch = x86_64 arch = i686 @@ -2,7 +2,7 @@ pkgname=dive-git pkgver=v0.10.0.r2.gc7d121b -pkgrel=2 +pkgrel=3 pkgdesc="A tool for exploring each layer in a docker image" url="https://github.com/wagoodman/dive" arch=('x86_64' 'i686') @@ -24,6 +24,11 @@ prepare() { install -m755 -d "${srcdir}/go/src/github.com/wagoodman/" ln -sf "${srcdir}/${pkgname}" "${srcdir}/go/src/github.com/wagoodman/dive" + + cd "${srcdir}/go/src/github.com/wagoodman/dive" + + export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw" + go get -v ./... } build() { @@ -31,15 +36,15 @@ build() { mkdir -p build - export GOPATH="${srcdir}/go" + export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw" go build \ - -trimpath -modcacherw \ - -ldflags "-s -w" -o build/dive + -trimpath -ldflags "-s -w" \ + -o build/dive } package() { cd "${srcdir}/go/src/github.com/wagoodman/dive" - install -Dm755 "./build/dive" "${pkgdir}/usr/bin/dive" - install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 "build/dive" "${pkgdir}/usr/bin/dive" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |