# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-class-trigger #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Class-Trigger pkgver=0.15 pkgrel=3 pkgdesc="Mixin to add / call inheritable triggers" url="https://metacpan.org/release/Class-Trigger/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-io-stringy" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Class-Trigger-$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="16e66c17cc44e3656573af7221b67c46e1cc83fdc047f6378a89ec7b8e8688f2020223018231b670c46972815e755a0b1f631f5cadd0b8f891d755c2e07526d8 Class-Trigger-0.15.tar.gz"