# Automatically generated by apkbuild-cpan, template 1 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-exception-class _pkgreal=Exception-Class pkgver=1.38 pkgrel=0 pkgdesc="A module that allows you to declare real exception classes in Perl" url="http://search.cpan.org/dist/Exception-Class/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-devel-stacktrace perl-class-data-inheritable" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz" _builddir="$srcdir/$_pkgreal-$pkgver" 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 && make test } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="4d7203a95893449f53ccacb385981569 Exception-Class-1.38.tar.gz" sha256sums="5c2cf90749c9f124118ad5846303c5463c9d6fa1f1c328a0085f6af2928c3900 Exception-Class-1.38.tar.gz" sha512sums="6ea568afba84bb720c7589e8349849334409772f31916a895b8ebf5c60a6c69cf2d497dd8bfb96685c3178fbf0efeda8065d0aaacea810aef1ed86bc985b1dfb Exception-Class-1.38.tar.gz"