Date: Sunday, January 29, 2023 @ 18:58:09
Author: orhun
Revision: 1391077
archrelease: copy trunk to community-x86_64
Added:
dive/repos/community-x86_64/
dive/repos/community-x86_64/PKGBUILD
(from rev 1391076, dive/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: dive/repos/community-x86_64/PKGBUILD (from rev 1391076,
dive/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-01-29 18:58:09 UTC (rev 1391077)
@@ -0,0 +1,42 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+# Contributor: mark.blakeney at bullet-systems dot net
+# Contributor: David Birks <[email protected]>
+# Contributor: David Stark <[email protected]>
+
+pkgname=dive
+pkgver=0.10.0
+pkgrel=3
+pkgdesc="A tool for exploring each layer in a docker image"
+arch=('x86_64')
+url="https://github.com/wagoodman/dive"
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('293e3ae853c8e7f77e4891addb4504a057ed3b6d97934cc97201031bcaa30b53')
+
+build() {
+ cd $pkgname-$pkgver
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-X main.version=$pkgver -linkmode external -extldflags
\"${LDFLAGS}\"" \
+ -o bin/dive \
+ .
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm 755 "bin/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: