# Description: Provide a perl interface to ZIP archive files
# URL: https://metacpan.org/release/Archive-Zip
# Maintainer: John McQuah, jmcquah at disroot dot org

name=p5-archive-zip
_author=PHRED
version=1.68
release=1
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/Archive-Zip-$version.tar.gz)

build() {
	cd Archive-Zip-$version

	perl Makefile.PL INSTALLDIRS=vendor
	make
	make DESTDIR="$PKG" install

	find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
	find $PKG -depth -empty -delete
}
