blob: 236020adf667fd49689a1b2fe0432abd4e14c751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-term-progressbar
pkgver=2.18
pkgrel=0
pkgdesc="Perl/CPAN Module Term::ProgressBar : Progress bar in just ASCII using Term"
url="http://search.cpan.org/dist/Term-ProgressBar"
arch="noarch"
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/M/MA/MANWAR/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
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="9483dfb546cf333fb03c4ea6f8d961ef67710036cfc913b1fda483cfcb05fd06161d427350d432acb178069772a8238ec1f5c429b2970cdc80f41d8105f0a8c8 Term-ProgressBar-2.18.tar.gz"
|