ptrcports/jsq/APKBUILD
ptrcnull 94703e9182
jsq: upgrade to 2
compiled executable goes brrr
2022-06-20 21:38:44 +02:00

36 lines
744 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"
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
"