# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=perl-data-buffer _pkgname=Data-Buffer pkgver=0.04 pkgrel=16 pkgdesc='Read/write buffer class.' arch=('any') license=('PerlArtistic' 'GPL') options=('!emptydirs') depends=('perl') url='http://search.cpan.org/dist/Data-Buffer' source=("http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/$_pkgname-$pkgver.tar.gz") sha512sums=('19725145b68a4143e8d1b65029df6715a880fe65298c7295464edb565b47005dab614f788066df1e662759a9e7c76d2c45116e78bf03e351ed57e29fe0d0b921') _distdir="$_pkgname-$pkgver" build() { ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ MODULEBUILDRC=/dev/null cd $_distdir /usr/bin/perl Makefile.PL make ) } package() { cd $_distdir make install find "$pkgdir" -name .packlist -o -name perllocal.pod -delete }