void-packages/srcpkgs/perl-Math-Prime-Util-GMP/template

22 lines
734 B
Bash

# Template file for 'perl-Math-Prime-Util-GMP'
pkgname=perl-Math-Prime-Util-GMP
version=0.51
revision=3
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="perl gmp-devel"
depends="perl"
short_desc="Utilities related to prime numbers and factoring, using GMP"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://github.com/danaj/Math-Prime-Util-GMP"
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
checksum=5871e73ff2bf255c7f5e38b05267a8695bba59105a008727bab1aab262d54b9a
if [ "$CROSS_BUILD" ]; then
pre_configure() {
sed -i -e "s/^check_lib_or_exit(lib => 'gmp', header => 'gmp.h');//" Makefile.PL
}
fi