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

21 lines
747 B
Bash

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