aports/testing/perl-extutils-makemaker/APKBUILD
Celeste f92885aac3 testing/perl-extutils-makemaker: move perl-dev to checkdepends
it is the `t/02-xsdynamic.t` test that attempts to build an XS
module, but when installed, this is a pure Perl `noarch` aport
2024-02-21 07:46:26 +00:00

39 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-extutils-makemaker
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=ExtUtils-MakeMaker
pkgver=7.70
pkgrel=2
pkgdesc="Create a module Makefile"
url="https://metacpan.org/release/ExtUtils-MakeMaker/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-dev"
source="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-$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
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
# man pages are already provided by perl-doc
rm -rf "$pkgdir"/usr/share/man
}
sha512sums="
53eee73c5ce6aa32412e8077ae36d54c7ee10eee56baa4ba06a397c90310e21458bd6719b0f5695bb0de3eb06eddaacf6d635ff82538b0748c8ef362555bc569 ExtUtils-MakeMaker-7.70.tar.gz
"