summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 223255c9c40bee029a677688031fbde2ac5af6d5 (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
# CPAN Name  : Future
# Contributor: Anton Leontiev <scileont /at/ gmail.com>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname=perl-future
pkgver=0.49
pkgrel=1
pkgdesc='Perl module to deal with operation awaiting completion'
arch=('any')
url='https://metacpan.org/release/Future'
license=('PerlArtistic' 'GPL')
makedepends=('perl-module-build>=0.4004')
checkdepends=('perl-test-fatal' 'perl-test-identity' 'perl-test-refcount')
depends=('perl>=5.15.8')
source=(http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Future-0.49.tar.gz)
options=(!emptydirs)
md5sums=('9749e5023b9ab724acc2a034a79bc155')

sanitize() {
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
}

build() {
	cd Future-0.49
	sanitize
	/usr/bin/perl Build.PL --installdirs vendor --destdir "$pkgdir"
	/usr/bin/perl Build
}

check() {
	cd Future-0.49
	sanitize
	/usr/bin/perl Build test
}

package() {
	cd Future-0.49
	sanitize
	/usr/bin/perl Build install
	find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}