aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-par/APKBUILD
blob: 7631c74a882c1d8e158fe94b94824be4c265d22c (plain) (blame)
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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-par
_pkgname=PAR
pkgver=1.015
pkgrel=1
pkgdesc="Perl Archive Toolkit"
url="http://search.cpan.org/dist/$_pkgname/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-archive-zip perl-par-dist"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="411048cb6517364b04cb46c179574b4baf2dc0788efecedc1e5fe2283a203d25157f1e74411761b8dd3019f50b651b0f40bf7d50131cf40077c4372571aa62b7  perl-par-1.015.tar.gz"