aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-term-progressbar/APKBUILD
blob: 6cfcb5ecfff8592103723fc11cb31598f4e2ace0 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-term-progressbar
pkgver=2.17
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/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="27701b5cf9fb025ffd979a708c489efa  Term-ProgressBar-2.17.tar.gz"
sha256sums="c1e0602c738a91fe54b01bcaa0d1a898b07ef6815c55eb2ebd6da4e3be20f696  Term-ProgressBar-2.17.tar.gz"
sha512sums="876490e3158b76aca4d118c03fc7984e1801cda620f23369083edbb4647b134b49eaca427ef790f2cf98a7786055ae777359484b102f1868a6641cc5bdb36d2c  Term-ProgressBar-2.17.tar.gz"