diff options
author | TBK <tbk@jjtc.dk> | 2017-06-19 17:57:05 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-10 10:25:00 +0000 |
commit | fccf9e600b98785ba9e0ed7a21dc12f4a5042a0a (patch) | |
tree | bd6f09150b8b1dd4f62c4c4dbe9f05dd256335a3 /testing/perl-test-toolbox | |
parent | e8f1c6717c29369b61d383dcdcd3dc5bb1c0e493 (diff) | |
download | aports-fccf9e600b98785ba9e0ed7a21dc12f4a5042a0a.tar.bz2 aports-fccf9e600b98785ba9e0ed7a21dc12f4a5042a0a.tar.xz |
testing/perl-test-toolbox: new aport
Diffstat (limited to 'testing/perl-test-toolbox')
-rw-r--r-- | testing/perl-test-toolbox/APKBUILD | 35 |
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" |