# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Leonardo Arena pkgname=perl-config-inifiles _pkgname=Config-IniFiles pkgver=3.000000 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="8ade7aa3c16520b6845bbe065c662d789e9e363a926ebb0cce5aef6a62fdee707875862c3417c3d85ebc4439b0ba9e19fd5281e40f8547443572aad5d7088c3f Config-IniFiles-3.000000.tar.gz"