# Contributor: Carlo Landmeter # Maintainer: pkgname=perl-term-progressbar pkgver=2.13 pkgrel=0 pkgdesc="Perl/CPAN Module Term::ProgressBar : Progress bar in just ASCII using Term" url="http://search.cpan.org/dist/Term-ProgressBar" arch="all" license="GPL" depends="perl-class-methodmaker perl-term-readkey perl-capture-tiny perl-test-exception" depends_dev="perl-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SZ/SZABGAB/Term-ProgressBar-$pkgver.tar.gz" _builddir="$srcdir"/Term-ProgressBar-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="1247d7f017c1d82d1610f27573ef029e Term-ProgressBar-2.13.tar.gz" sha256sums="95a56e1529928b7a0d7adf5bc2f54b9b9ae9da58c43b519af74a1e6596209b3c Term-ProgressBar-2.13.tar.gz" sha512sums="4f97a3a5342180cd2b5e9bb425d6f46926dccd17badd4b54eefcf47065a602aad11aac9223b6215903a20f34fae7fbff401a6e10ca2db1c70191250f469da7b1 Term-ProgressBar-2.13.tar.gz"