# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-test-simple _pkgreal=Test-Simple pkgver=1.302166 pkgrel=0 pkgdesc="Basic utilities for writing tests." url="http://search.cpan.org/dist/Test-Simple/" arch="noarch" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="" cpancheckdepends="" provides="perl-test-tester" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$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 } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } doc() { default_doc replaces="perl-doc" } sha512sums="7bf1759d265f1c9dec01cf42baf0359926e1bb955ebe93b9c9f3d918932cdc39cabd07e18fa2e899540ae5495d7be5b21877cc74805e911db9a9abaf154cefd5 Test-Simple-1.302166.tar.gz"