commit 29be0e77ef7f56d1e9f69e3310bb9f950204a11a Author: Rafael Baboni Dominiquini Date: Mon Feb 2 20:17:40 2026 -0300 Published: 0.4.1 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..8b09d2ee9ad6c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = jsongrep-bin + pkgdesc = A JSONPath-inspired query language over JSON documents + pkgver = 0.4.1 + pkgrel = 1 + url = https://github.com/micahkepe/jsongrep + arch = x86_64 + license = MIT + provides = jg + conflicts = jsongrep + source_x86_64 = jsongrep-x86_64-0.4.1.tgz::https://github.com/micahkepe/jsongrep/releases/download/v0.4.1/jsongrep-0.4.1-x86_64-unknown-linux-musl.tar.gz + sha256sums_x86_64 = 4b7c21fefb1630dbff3d58dc727b8469e505ee4763486ba6b58e963077e65d29 + +pkgname = jsongrep-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..61d143428d736 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.nvchecker.toml +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 0000000000000..fe567202b3e92 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,5 @@ +[jsongrep-bin] +source = "github" +github = "micahkepe/jsongrep" +use_latest_release = true +prefix = "v" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..1e91659e4299a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Rafael Dominiquini + +_appname=jg +_pkgauthor=micahkepe +_pkgname=jsongrep +pkgname=${_pkgname}-bin +pkgdesc="A JSONPath-inspired query language over JSON documents" + +pkgver=0.4.1 +pkgrel=1 +_pkgvername=v${pkgver} + +arch=('x86_64') +_barch=('x86_64-unknown-linux-musl') + +url="https://github.com/${_pkgauthor}/${_pkgname}" +_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${_pkgvername}" + +license=('MIT') + +provides=("${_appname}") +conflicts=("${_pkgname}") + +source_x86_64=("${_pkgname}-${arch[0]}-${pkgver}.tgz::${url}/releases/download/${_pkgvername}/${_pkgname}-${pkgver}-${_barch[0]}.tar.gz") +sha256sums_x86_64=('4b7c21fefb1630dbff3d58dc727b8469e505ee4763486ba6b58e963077e65d29') + + +case ${CARCH} in + ${arch[0]}) + _CARCH=${_barch[0]} + ;; +esac + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}-${_CARCH}/" || exit + + install -Dm755 "${_appname}" "${pkgdir}/usr/bin/${_appname}" + + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}