# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Leonardo Arena pkgname=perl-config-inifiles _pkgname=Config-IniFiles pkgver=3.000002 pkgrel=1 pkgdesc="A module for reading .ini-style configuration files." url="https://metacpan.org/release/Config-IniFiles" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-list-moreutils perl-io-stringy" depends="$cpandepends" makedepends="perl-dev perl-module-build" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_pkgname}-${pkgver}.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_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() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="05aaad3e9ef9515bc7616a95adaa0d6471734d1a248b6968a89634566cec8ff82360905fb6553c9e1afe1cfe843bbf29ebe0f2203a84cc24a275f839e2d74120 Config-IniFiles-3.000002.tar.gz"