updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / perl-filehandle-unget / PKGBUILD
blob8366fb251eee26c1f4d3585c271c8c3e53dbaea2
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
6 pkgver=0.1622
7 pkgrel=1
8 pkgdesc="FileHandle which supports multi-byte unget "
9 arch=('any')
10 url="http://search.cpan.org/~DCOPPIT/${_cpanname}"
11 license=('GPL' 'PerlArtistic')
12 depends=('perl')
13 options=('!emptydirs')
14 source=(http://www.cpan.org/authors/id/D/DC/DCOPPIT/${_cpanname}-${pkgver}.tar.gz) 
15 md5sums=('14c708f99adc22256a7b2566bf5c649f')
17 build() {
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 
21   make || return 1
22   make install DESTDIR=$pkgdir || return 1
23   find $pkgdir -name '.packlist' -delete
24   find $pkgdir -name '*.pod' -delete