1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00

testing/perl-test-timer: new aport

http://search.cpan.org/dist/Test-Timer/
test module to test/assert response times
This commit is contained in:
Nick Andrew 2017-04-09 08:35:39 +00:00 committed by Natanael Copa
parent d7d9d5e0a9
commit ba80db4b63

View file

@ -0,0 +1,43 @@
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Nick Andrew <nick@nick-andrew.net>
# Maintainer: Nick Andrew <nick@nick-andrew.net>
pkgname=perl-test-timer
_pkgreal=Test-Timer
pkgver=0.18
pkgrel=0
pkgdesc="test module to test/assert response times"
url="http://search.cpan.org/dist/Test-Timer/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-error"
cpanmakedepends="perl-module-build"
cpancheckdepends="perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JO/JONASBN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build && ./Build test
}
package() {
cd "$builddir"
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="660cce680d5ad4a45a8b06ad90c356fb2e35c39673a73c4937ab98007a6f3bd40b73fb204cec9bbfda466317c94da24c0ece8c715ef1924317bd862bbcaed6a9 Test-Timer-0.18.tar.gz"