mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
New package: sq-0.42.0
This commit is contained in:
parent
da747ddf3c
commit
4e571149f0
2 changed files with 43 additions and 0 deletions
11
srcpkgs/sq/patches/32-bit.patch
Normal file
11
srcpkgs/sq/patches/32-bit.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/libsq/ast/render/range.go
|
||||||
|
+++ b/libsq/ast/render/range.go
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
if rr.Limit == -1 {
|
||||||
|
// MySQL requires a LIMIT if OFFSET is used. Therefore
|
||||||
|
// we make the LIMIT a very large number
|
||||||
|
- limit = fmt.Sprintf("LIMIT %d", math.MaxInt64)
|
||||||
|
+ limit = fmt.Sprintf("LIMIT %d", uint64(math.MaxInt64))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
32
srcpkgs/sq/template
Normal file
32
srcpkgs/sq/template
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# Template file for 'sq'
|
||||||
|
pkgname=sq
|
||||||
|
version=0.42.0
|
||||||
|
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="1d73a814ead3205211aca852fa8c30528ec60546732cfc282105f9aa8e4556f5
|
||||||
|
abcab9a053f759e62d516f4ab003f918c7d03385c0581c09c5ed369debd44038"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue