1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/perl-parse-pmfile/APKBUILD

37 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-parse-pmfile
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Parse-PMFile
pkgver=0.44
pkgrel=0
pkgdesc="Parse .pm files as PAUSE does"
url="https://metacpan.org/release/Parse-PMFile/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-extutils-makemaker-cpanfile"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/Parse-PMFile-$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
}
sha512sums="
2a62d6536a726264467938d921b767523eeaa76b13322acf37250b49bda53df1d198c7b27d4521bed6492de3561828ecf748ab35344fd9fe87c4fe5b9b45fd67 Parse-PMFile-0.44.tar.gz
"