# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=perl-math-gmp _pkgname=Math-GMP pkgver=2.20 pkgrel=7 pkgdesc='High speed arbitrary size integer math.' arch=('x86_64' 'aarch64') url='https://metacpan.org/pod/Math::GMP' license=('GPL' 'PerlArtistic') depends=('perl' 'gmp' 'perl-devel-checklib' 'perl-alien-base-modulebuild' 'perl-alien-gmp') options=(!emptydirs) source=("http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgname-$pkgver.tar.gz") sha512sums=('e76a4f2ed9f700029a0b075fcdaecf6fb3792ecfef23fb75f014572b6471be9265b80551c741cda9fe3f323a351a23fb9e5edca2e05300b97509b225aa721b04') build() { cd "$_pkgname-$pkgver" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd "$_pkgname-$pkgver" make install DESTDIR="$pkgdir" }