# Description: An API for simple XML files
# URL: https://metacpan.org/release/XML-Simple
# Maintainer: Matt Housh, jaeger at crux dot ninja

name=p5-xml-simple
version=2.25
release=2
source=(http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-$version.tar.gz)

build() {
	cd XML-Simple-$version

	perl Makefile.PL
	make OPTIMIZE="$CFLAGS"
	make install DESTDIR=$PKG

	find $PKG -type f \( \
		-name '.packlist' -o \
		-name '*.bs' -o \
		-name 'autosplit.ix' -o \
		-name 'perllocal.pod' \) -delete

	find $PKG -depth -empty -delete
}
