# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-archive-zip _pkgname=Archive-Zip pkgver=1.64 pkgrel=0 pkgdesc="Provide a perl interface to ZIP archive files." url="http://search.cpan.org/dist/Archive-Zip/" arch="noarch" license="GPL PerlArtistic" depends="perl" makedepends="perl-dev" checkdepends="perl-test-mockmodule perl-super perl-sub-identify perl-test-simple zip" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$_pkgname-$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 Makefile.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="7ae4c87ad50b30e764a79ada8f39ea2d698cfba957294d28dc15a2f3b2497923266a00574c5e43ddd59d6ec76d911f39007851920e0f09bfe3f466d46e17d6fc Archive-Zip-1.64.tar.gz"