From 0660c9f089186113825600ee1b920afbb1001757 Mon Sep 17 00:00:00 2001 From: icp Date: Mon, 23 Jan 2023 18:23:00 +0530 Subject: [PATCH] New package: sq-0.42.0 --- srcpkgs/sq/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/sq/template diff --git a/srcpkgs/sq/template b/srcpkgs/sq/template new file mode 100644 index 0000000000000..81e0c60461648 --- /dev/null +++ b/srcpkgs/sq/template @@ -0,0 +1,30 @@ +# Template file for 'sq' +pkgname=sq +version=0.42.0 +revision=1 +archs="x86_64* aarch64*" +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}-amd64-amd64.tar.gz" +checksum="1d73a814ead3205211aca852fa8c30528ec60546732cfc282105f9aa8e4556f5 + abcab9a053f759e62d516f4ab003f918c7d03385c0581c09c5ed369debd44038" +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 +}