1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/raku-json-unmarshal: new aport

https://github.com/raku-community-modules/JSON-Unmarshal
Turn JSON into an Object
This commit is contained in:
Celeste 2025-06-07 07:19:34 +00:00
parent 564d200e52
commit 5218cb2610

View file

@ -0,0 +1,43 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=raku-json-unmarshal
pkgver=0.18
pkgrel=0
pkgdesc="Turn JSON into an Object"
url="https://github.com/raku-community-modules/JSON-Unmarshal"
arch="all"
license="Artistic-2.0"
depends="
rakudo
raku-json-fast
raku-json-name
raku-json-optin
"
makedepends="moarvm-dev rakudo-dev"
checkdepends="perl-utils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/raku-community-modules/JSON-Unmarshal/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/JSON-Unmarshal-$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' --ext .rakutest
}
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="
9930530218640517532c8a9b76061890893ad4e34c985fab249bc952e8c7aaaaf49f638e693700dcb32a15f426876ac069441864f63c72f456fbc79bfb446984 raku-json-unmarshal-0.18.tar.gz
"