# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Leonardo Arena pkgname=perl-config-inifiles _pkgname=Config-IniFiles pkgver=3.000001 pkgrel=0 pkgdesc="A module for reading .ini-style configuration files." url="http://search.cpan.org/dist/Config-IniFiles/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-list-moreutils" cpanmakedepends="perl-io-stringy" depends="$cpandepends" makedepends="perl-dev perl-module-build $cpanmakedepends" 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="e41249fdd7d22763aa73fd31782487571d9e2dfe710dff61fe80e29ca560155a5dbeb20d0f380f86c4a713adcbe0ba2978a8f8b70dc90e625e66872c0be9ebef Config-IniFiles-3.000001.tar.gz"