vp-build/srcpkgs/perl-Math-Prime-Util/template
2018-11-08 20:14:59 -02:00

22 lines
748 B
Bash

# Template file for 'perl-Math-Prime-Util'
pkgname=perl-Math-Prime-Util
version=0.72
revision=1
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=d08eb9868abe3118565bdcb1103721fe2f20aa3f72e2e4a2c29eb79d437b4354
if [ "$CROSS_BUILD" ]; then
pre_configure() {
sed -i -e "s/^\(my \$have_gmp =\).*/\1 1;/" Makefile.PL
}
fi