36 lines
759 B
Text
36 lines
759 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="aarch64 x86_64"
|
|
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
|
|
"
|