mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +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:
parent
d7d9d5e0a9
commit
ba80db4b63
1 changed files with 43 additions and 0 deletions
43
testing/perl-test-timer/APKBUILD
Normal file
43
testing/perl-test-timer/APKBUILD
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue