# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-config-tiny _pkgreal=Config-Tiny pkgver=2.24 pkgrel=1 pkgdesc="Perl module for Config-Tiny" url="https://metacpan.org/release/Config-Tiny/" arch="noarch" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$builddir" if [ -e Build.PL ]; then perl Build.PL installdirs=vendor else PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="7ce660f947351c346f553a1f0424e6c5710c9334090791525a5ab3d7462f6754315602028de4da7f2aeb72303df68d7419e15bea73c8f161830216b26fdfcb40 Config-Tiny-2.24.tgz"