# Contributor: Ondrej Kucera pkgname=perl-xml-sax-writer _realname=XML-SAX-Writer pkgver=0.52 pkgrel=1.1 pkgdesc="XML-SAX-Writer perl module (SAX2 writer)" arch=("i686" "x86_64") url="http://search.cpan.org/dist/XML-SAX-Writer/" license=("Artistic") depends=('perl' 'perl-text-iconv' 'perl-xml-filter-buffertext') options=(!emptydirs) source=(http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/XML-SAX-Writer-$pkgver.tar.gz) md5sums=('887c57d30e406607463f65febd62f1bc') build() { cd ${startdir}/src/${_realname}-${pkgver} # Install module into the vendor directories. perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 make test || return 1 make DESTDIR=${startdir}/pkg install # Remove .packlist and perllocal.pod files. find ${startdir}/pkg -name '.packlist' -delete find ${startdir}/pkg -name 'perllocal.pod' -delete }