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

testing/raku-digest: new aport

https://github.com/grondilu/libdigest-raku
Pure Raku implementation of digest algorithms
This commit is contained in:
Celeste 2025-06-07 06:26:02 +00:00
parent 5dda05884c
commit ca3904650f

View file

@ -0,0 +1,39 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=raku-digest
pkgver=1.1.0
pkgrel=0
pkgdesc="Pure Raku implementation of digest algorithms"
url="https://github.com/grondilu/libdigest-raku"
# s390x: fails md5.t
arch="all !s390x"
license="Artistic-2.0"
depends="rakudo"
makedepends="moarvm-dev rakudo-dev"
checkdepends="perl-utils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/grondilu/libdigest-raku/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/libdigest-raku-$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="
03297ab900c103476d2e99cc7cd251ea216548830271db0a2f7b43c1d97071a6b64d3e36786a4cb69154e78186f7ff083297ffceac2785bf6b81c2af8c402fbc raku-digest-1.1.0.tar.gz
"