1 # This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 pkgname=perl-filehandle-unget
5 _cpanname=FileHandle-Unget
8 pkgdesc="FileHandle which supports multi-byte unget "
10 url="http://search.cpan.org/~DCOPPIT/${_cpanname}"
11 license=('GPL' 'PerlArtistic')
13 options=('!emptydirs')
14 source=(http://www.cpan.org/authors/id/D/DC/DCOPPIT/${_cpanname}-${pkgver}.tar.gz)
15 md5sums=('14c708f99adc22256a7b2566bf5c649f')
18 cd $srcdir/${_cpanname}-${pkgver}
19 sed -i '/^auto_install/d' Makefile.PL
20 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22 make install DESTDIR=$pkgdir || return 1
23 find $pkgdir -name '.packlist' -delete
24 find $pkgdir -name '*.pod' -delete