summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c943d2d2f940b2249866131a2f234f4130e9bbb1 (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
# Maintainer: Chris Kitching <chriskitching@linux.com>
# Author: "Lucy" https://github.com/lucy

pkgname=perl-benchmark-timer
pkgver=0.7107
pkgrel=1
pkgdesc="Perl code benchmarking tool"
arch=('any')
url="http://search.cpan.org/dist/Benchmark-Timer"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-uri' 'perl-module-install')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/Benchmark-Timer-$pkgver.tar.gz")
sha256sums=('64f70fabc896236520bfbf43c2683fdcb0f2c637d77333aed0fd926b92226b60')

build() {
	cd "$srcdir/Benchmark-Timer-$pkgver"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

package() {
	cd "$srcdir/Benchmark-Timer-$pkgver"
	make install DESTDIR=$pkgdir
	find $pkgdir -name '.packlist' -delete
	find $pkgdir -name '*.pod' -delete
}