# Maintainer: Leonardo Arena pkgname=perl-super _pkgname=SUPER pkgver=1.20141117 pkgrel=0 pkgdesc="Control superclass method dispatch" url="https://metacpan.org/pod/SUPER" arch="noarch" license="Artistic GPL-2.0" depends="perl" makedepends="perl-dev perl-module-build perl-sub-identify" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/SUPER-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="c17fe478fcb9ebc2749c27fc75b839bd77e81c9d0170697b2a697dcebb9f4eef4b954d023b76d33a8b4201b110e5e997b1e0993faf7a04ef2e1191a2f7c516a0 SUPER-1.20141117.tar.gz"