aports/testing/spvm-math/APKBUILD
2025-02-04 07:21:39 +00:00

38 lines
1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=spvm-math
pkgver=1.006
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=SPVM-Math
pkgdesc="SPVM Language - Mathematical Functions"
url="https://metacpan.org/release/SPVM-Math/"
arch="all !s390x" # spvm
license="MIT"
depends="perl spvm"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KI/KIMOTO/SPVM-Math-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
0a41de8d7d4fc3da7c7a70842746dae2fa5669bdfe6f7b5f616a47d331489feef56014f2760381d2b9705a78a2adb52c4f0caa50a23fadd2eec3a29f2ecf96a4 SPVM-Math-1.006.tar.gz
"