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-class: new aport

https://github.com/jonathanstowe/JSON-Class
Construct and serialize Objects to/from JSON
This commit is contained in:
Celeste 2025-06-07 07:19:36 +00:00
parent c3a579e2b8
commit 28a78bdca0

View file

@ -0,0 +1,44 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=raku-json-class
pkgver=0.0.21
pkgrel=0
pkgdesc="Construct and serialize Objects to/from JSON"
url="https://github.com/jonathanstowe/JSON-Class"
arch="all"
license="Artistic-2.0"
depends="
rakudo
raku-json-marshal
raku-json-name
raku-json-optin
raku-json-unmarshal
"
makedepends="moarvm-dev rakudo-dev"
checkdepends="perl-utils raku-json-fast"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jonathanstowe/JSON-Class/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/JSON-Class-$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="
7051858a555a14c4c333001153ef0fa94d65d87fb465cc80b1039a3cc15c0ee218df25fdc4ffaa43980c2ace806479c1482c33453f371752b277ef241dfd17e9 raku-json-class-0.0.21.tar.gz
"