diff options
Diffstat (limited to 'community/perl-class-errorhandler/APKBUILD')
-rw-r--r-- | community/perl-class-errorhandler/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/perl-class-errorhandler/APKBUILD b/community/perl-class-errorhandler/APKBUILD new file mode 100644 index 0000000000..3d169ecfc2 --- /dev/null +++ b/community/perl-class-errorhandler/APKBUILD @@ -0,0 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-class-errorhandler +_pkgreal=Class-ErrorHandler +pkgver=0.04 +pkgrel=1 +pkgdesc="Base class for error handling" +url="https://metacpan.org/release/Class-ErrorHandler/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Class-ErrorHandler-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="9e235da1c2091f9422723af4528305b8ed2b50920a865e6fee76380a8c512fcd837d752f4ea5146df12c506c776e88c1075419ab3809be3296995387df759c83 Class-ErrorHandler-0.04.tar.gz" |