From c8972cd208d116da7a7c869c658fa54eb4d16a08 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 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/sq/template diff --git a/srcpkgs/sq/template b/srcpkgs/sq/template new file mode 100644 index 000000000000..b34d407e9726 --- /dev/null +++ b/srcpkgs/sq/template @@ -0,0 +1,29 @@ +# Template file for 'sq' +pkgname=sq +version=0.40.0 +revision=1 +build_wrksrc="sq-${version}" +build_style=go +go_import_path="github.com/neilotoole/sq" +go_ldflags="-X ${go_import_path}/cli/buildinfo.Version=v${version}" +go_build_tags="libsqlite3" +makedepends="sqlite-devel" +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 + https://github.com/neilotoole/sq/releases/download/v${version}/sq-${version}-linux-amd64.tar.gz" +checksum="696ae24ac14cd87a87f06d29953b6b9580ba0b2c92c36e1425f5aa244fb33b07 + 08098b182d08f561d2229691f7b8fd00983e6442cf9b35e97035364387da95a4" +conflicts="squirrel sequoia-sq" + +post_install() { + for shell in bash fish zsh; do + vcompletion "${wrksrc}/completions/sq.${shell}" "${shell}" + done + + vman ${wrksrc}/manpages/sq.1.gz + vlicense LICENSE +}