diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-04-24 19:50:18 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-25 20:47:12 +0000 |
commit | 115693088c2b77c739a1a837306d2ed2a799fbe3 (patch) | |
tree | ccb3f4ae2b1895aaf2a6ca229d04ebd73944034a /testing/perl-class-errorhandler | |
parent | e16e4b554a80101f9369fce4d4ab4c8275b3d735 (diff) | |
download | aports-115693088c2b77c739a1a837306d2ed2a799fbe3.tar.bz2 aports-115693088c2b77c739a1a837306d2ed2a799fbe3.tar.xz |
testing/perl-class-errorhandler: new aport
Diffstat (limited to 'testing/perl-class-errorhandler')
-rw-r--r-- | testing/perl-class-errorhandler/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/perl-class-errorhandler/APKBUILD b/testing/perl-class-errorhandler/APKBUILD new file mode 100644 index 0000000000..6188c37b6a --- /dev/null +++ b/testing/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=0 +pkgdesc="Base class for error handling" +url="https://metacpan.org/release/Class-ErrorHandler/" +arch="noarch" +license="GPL-1.0-or-later 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" |