ptrcports/alpine/jsq/APKBUILD

37 lines
759 B
Text
Raw Normal View History

2022-05-07 20:57:33 +00:00
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=jsq
pkgver=2
2022-05-07 20:57:33 +00:00
pkgrel=0
pkgdesc="QuickJS-based jq-like data processing tool"
url="https://git.ddd.rip/ptrcnull/ptrcports"
2023-05-03 01:11:45 +00:00
arch="aarch64 x86_64"
2022-05-07 20:57:33 +00:00
license="BSD-2-Clause"
2022-06-20 22:47:50 +00:00
makedepends="quickjs-dev"
source="jsq.js"
2022-05-07 20:57:33 +00:00
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" ]
}
2022-05-07 20:57:33 +00:00
package() {
install -Dm755 jsq -t "$pkgdir"/usr/bin
}
2022-05-07 20:57:33 +00:00
sha512sums="
01453f4dfcf0263b37c7c87c0d7c220efe210c3d03ef36c06aa7001bcf97b490bd17953df15a5dc3d88603da1f8498010b2c1ba5659b706e64df6d9b862b0dd9 jsq.js
2022-05-07 20:57:33 +00:00
"