aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/perl-test-toolbox/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/perl-test-toolbox/APKBUILD b/testing/perl-test-toolbox/APKBUILD
new file mode 100644
index 0000000000..15a1aea4ad
--- /dev/null
+++ b/testing/perl-test-toolbox/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: TBK <tbk@jjtc.eu>
+pkgname=perl-test-toolbox
+_pkgreal=Test-Toolbox
+pkgver=0.4
+pkgrel=0
+pkgdesc="Tools for testing"
+url="http://search.cpan.org/dist/Test-Toolbox/"
+arch="noarch"
+license="GPL PerlArtistic"
+options="!check"
+depends="perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MI/MIKO/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="99d711a7cce4ac3a4fd37f4b7fc91cf75c5d4978ff83cd084599ed6c1818d22b30a3210a14b03da4646b53cc939b224937da3bea1c49bb13324c5583ee44bf81 Test-Toolbox-0.4.tar.gz"