1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
7 pkgdesc='Command-line tool and terminal JSON viewer'
9 url="https://github.com/antonmedv/$pkgname"
13 _archive="$pkgname-$pkgver"
14 source=("$url/archive/$pkgver/$_archive.tar.gz")
15 sha256sums=('1e034ac1d815b05a06a193fa409da1bcbf35453a04759e2c76c745a82da1ad87')
24 export CGO_CPPFLAGS="$CPPFLAGS"
25 export CGO_CFLAGS="$CFLAGS"
26 export CGO_CXXFLAGS="$CXXFLAGS"
27 export CGO_LDFLAGS="$LDFLAGS"
28 export GOFLAGS="-buildmode=pie -trimpath -modcacherw -ldflags=-linkmode=external"
34 install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
35 install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
36 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE