33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
# Template file for 'sq'
|
|
pkgname=sq
|
|
version=0.47.4
|
|
revision=1
|
|
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 <pangolin@vivaldi.net>"
|
|
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="d75f745ca2360d79d1a6dc76d3e43348ae8f61b77daa4793b4b4a28113001765
|
|
0f4855e9ede4f85ae2cd12c4cecb4520a0615474cbf7afcd5811bd7849f2d099"
|
|
conflicts="squirrel sequoia-sq"
|
|
|
|
post_extract() {
|
|
mv sq-${version}/* .
|
|
}
|
|
|
|
post_install() {
|
|
for shell in bash fish zsh; do
|
|
vcompletion "completions/sq.${shell}" "${shell}"
|
|
done
|
|
|
|
vman manpages/sq.1.gz
|
|
vlicense LICENSE
|
|
}
|