# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-test-trap _pkgreal=Test-Trap pkgver=v0.3.2 pkgrel=0 pkgdesc="Trap exit codes, exceptions, output, etc." url="http://search.cpan.org/dist/Test-Trap/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-data-dump" cpanmakedepends="" cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/EB/EBHANSSEN/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare || return 1 cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL installdirs=vendor || return 1 } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } package() { cd "$builddir" ./Build install destdir="$pkgdir" || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" ./Build test } sha512sums="2c8985b316885975b6c07a6da03d55daea8bb212400a5db90ab7aecf1c5a79cd2682db46b39a3353e8bdd4a7e79fef86c26cec731d02561755852e48c09ad129 Test-Trap-v0.3.2.tar.gz"