# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-io _pkgreal=IO pkgver=1.39 pkgrel=0 pkgdesc="Perl core IO modules" url="https://metacpan.org/pod/IO" 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/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } doc() { default_doc replaces="perl-doc" } sha512sums="5f42be505d75d712eef488b5604666964740bfe0f136e9d7edfe334463d19b582c2f0bf6a32878187aef64b9f435ee1f8f1ae49dd1c5f80445284df0016cf40d IO-1.39.tar.gz"