aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-test-toolbox/APKBUILD
blob: bc474054ed299b9320755ce4c2414cd1a556217f (plain) (tree)
1
2
3
4
5
6
7
8
9



                                
        



                                               














                                                                                  





                      








                                                                                                                                                                      
# Contributor: TBK <tbk@jjtc.eu>
pkgname=perl-test-toolbox
_pkgreal=Test-Toolbox
pkgver=0.4
pkgrel=1
pkgdesc="Tools for testing"
url="http://search.cpan.org/dist/Test-Toolbox/"
arch="noarch"
license="GPL PerlArtistic"
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
}

check() {
	cd "$builddir"
	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"