21 lines
748 B
Bash
21 lines
748 B
Bash
# Template file for 'perl-Math-Prime-Util'
|
|
pkgname=perl-Math-Prime-Util
|
|
version=0.73
|
|
revision=3
|
|
wrksrc="${pkgname/perl-/}-${version}"
|
|
build_style=perl-module
|
|
hostmakedepends="perl perl-Math-Prime-Util-GMP"
|
|
makedepends="$hostmakedepends"
|
|
depends="$hostmakedepends"
|
|
short_desc="Utilities related to prime numbers, including fast sieves and factoring"
|
|
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
|
license="Artistic-1.0-Perl, GPL-1.0-or-later"
|
|
homepage="https://github.com/danaj/Math-Prime-Util"
|
|
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
|
|
checksum=4afa6dd8cdb97499bd4eca6925861812c29d9f5a0f1ac27ad9d2d9c9b5602894
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
pre_configure() {
|
|
sed -i -e "s/^\(my \$have_gmp =\).*/\1 1;/" Makefile.PL
|
|
}
|
|
fi
|