From 568c5834d471bd821ffe38536634fe217996dee6 Mon Sep 17 00:00:00 2001 From: icp Date: Mon, 23 Jan 2023 18:23:00 +0530 Subject: [PATCH] New package: sq-0.40.0 --- srcpkgs/sq/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/sq/template diff --git a/srcpkgs/sq/template b/srcpkgs/sq/template new file mode 100644 index 000000000000..db568662cdf2 --- /dev/null +++ b/srcpkgs/sq/template @@ -0,0 +1,28 @@ +# Template file for 'sq' +pkgname=sq +version=0.40.0 +revision=1 +build_style=go +build_helper="qemu" +go_import_path="github.com/neilotoole/sq" +go_ldflags="-X ${go_import_path}/cli/buildinfo.Version=v${version}" +short_desc="CLI tool that provides jq-style access to structured data sources" +maintainer="icp " +license="MIT" +homepage="https://sq.io" +changelog="https://raw.githubusercontent.com/neilotoole/sq/master/CHANGELOG.md" +distfiles="https://github.com/neilotoole/sq/archive/refs/tags/v${version}.tar.gz" +checksum=696ae24ac14cd87a87f06d29953b6b9580ba0b2c92c36e1425f5aa244fb33b07 +conflicts="squirrel sequoia-sq" + +post_install() { + for shell in bash fish zsh; do + vtargetrun ${DESTDIR}/usr/bin/sq completion ${shell} > sq.${shell} + vcompletion sq.${shell} ${shell} + done + + GOARCH= go run . man > sq.1 + vman sq.1 + + vlicense LICENSE +}