1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/raku-json-fast/APKBUILD
Celeste 222c1cb992 testing/raku-json-fast: new aport
https://github.com/timo/json_fast
Naive, fast JSON parser and serializer
2025-04-24 16:29:44 +00:00

38 lines
1.1 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=raku-json-fast
pkgver=0.19
pkgrel=0
pkgdesc="Naive, fast JSON parser and serializer"
url="https://github.com/timo/json_fast"
arch="all"
license="Artistic-2.0"
depends="rakudo"
makedepends="moarvm-dev rakudo-dev"
checkdepends="perl-utils"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMOTIMO/Perl6/JSON-Fast-$pkgver.tar.gz"
builddir="$srcdir/JSON-Fast-$pkgver"
options="!archcheck" # Precompiled arch dependent files included (quiet noarch warning)
build() {
RAKUDO_RERESOLVE_DEPENDENCIES=0 \
/usr/share/rakudo/tools/install-dist.raku \
--to=output --for=vendor
}
check() {
prove -e 'raku -Ilib'
}
package() {
mkdir -p "$pkgdir"/usr/share/rakudo
cp -RT output "$pkgdir"/usr/share/rakudo/vendor
install -Dvm644 META6.json README.md \
-t "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="
85664ca7c984a72b38f271f47e94bedea77929c8bb91657e44b270bbda06beca1674a31d2b11e47579bb5408cbde93f18c6e7baf8c86b6eebfd1da129dbf0b28 JSON-Fast-0.19.tar.gz
"