Published: 0.4.1

This commit is contained in:
Rafael Baboni Dominiquini 2026-02-02 20:17:40 -03:00
commit 29be0e77ef
4 changed files with 65 additions and 0 deletions

13
.SRCINFO Normal file
View file

@ -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

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.nvchecker.toml
!.gitignore
!PKGBUILD
!.SRCINFO

5
.nvchecker.toml Normal file
View file

@ -0,0 +1,5 @@
[jsongrep-bin]
source = "github"
github = "micahkepe/jsongrep"
use_latest_release = true
prefix = "v"

42
PKGBUILD Normal file
View file

@ -0,0 +1,42 @@
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_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"
}