# Contributor: Ondrej Kucera pkgname=perl-xml-filter-buffertext _realname=XML-Filter-BufferText pkgver=1.01 pkgrel=3 pkgdesc="XML-Filter-BufferText perl module (filter to put all characters() in one event)" arch=("i686" "x86_64") url="http://search.cpan.org/dist/XML-Filter-BufferText/" license=("GPL" "Artistic") depends=('perl>=5.10.0' 'perl-xml-sax') options=(!emptydirs) source=(http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/${_realname}-$pkgver.tar.gz) md5sums=('2992c0387632583b966ab9c965b25512') 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 }