This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
ptrcports/jsq/APKBUILD
2022-06-21 00:47:50 +02:00

36 lines
748 B
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=jsq
pkgver=2
pkgrel=0
pkgdesc="QuickJS-based jq-like data processing tool"
url="https://git.ddd.rip/ptrcnull/ptrcports"
arch="all"
license="BSD-2-Clause"
makedepends="quickjs-dev"
source="jsq.js"
builddir="$srcdir"
build() {
qjsc -o jsq \
-flto \
-fno-date \
-fno-proxy \
-fno-promise \
-fno-module-loader \
-fno-bigint \
jsq.js
}
check() {
out=$(echo '{"test":"passed"}' | ./jsq ".test")
[ "$out" = "passed" ]
}
package() {
install -Dm755 jsq -t "$pkgdir"/usr/bin
}
sha512sums="
01453f4dfcf0263b37c7c87c0d7c220efe210c3d03ef36c06aa7001bcf97b490bd17953df15a5dc3d88603da1f8498010b2c1ba5659b706e64df6d9b862b0dd9 jsq.js
"