mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 14:56:53 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-math-random
|
|
pkgver=0.72
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Math-Random
|
|
pkgdesc="Collection of random number generators"
|
|
url="https://metacpan.org/release/Math-Random/"
|
|
arch="all"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/G/GR/GROMMEL/Math-Random-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd "$pkgdir"
|
|
rm -v usr/lib/perl5/vendor_perl/Math/example.pl \
|
|
usr/lib/perl5/vendor_perl/Math/test1.pl \
|
|
usr/lib/perl5/vendor_perl/Math/test2.pl
|
|
}
|
|
|
|
sha512sums="
|
|
6a24f59ba06b93027fe5907d41a36b2142c20c2813813a34a5adfa9ee06de25902d5f544009f307b518905c614238f63ad3717a1f199513f455f4c53119e2088 Math-Random-0.72.tar.gz
|
|
"
|