diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 11:13:15 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:23 +0300 |
commit | 6c3351afba8dc007556bb19e4a47c8f48ce7947e (patch) | |
tree | 2fe036f2d5af415b37e3ea6bb66db9c43736d76c /testing/perl-test-trap | |
parent | 00ca899d4c888f4c12eef1b6fcbd0a75a4f4646e (diff) | |
download | aports-6c3351afba8dc007556bb19e4a47c8f48ce7947e.tar.bz2 aports-6c3351afba8dc007556bb19e4a47c8f48ce7947e.tar.xz |
testing/perl-test-trap: new aport
http://search.cpan.org/dist/Test-Trap/
Diffstat (limited to 'testing/perl-test-trap')
-rw-r--r-- | testing/perl-test-trap/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-test-trap/APKBUILD b/testing/perl-test-trap/APKBUILD new file mode 100644 index 0000000000..640da0eb10 --- /dev/null +++ b/testing/perl-test-trap/APKBUILD @@ -0,0 +1,47 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-test-trap +_pkgreal=Test-Trap +pkgver=v0.3.2 +pkgrel=0 +pkgdesc="Trap exit codes, exceptions, output, etc." +url="http://search.cpan.org/dist/Test-Trap/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-data-dump" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/EB/EBHANSSEN/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + ./Build test +} + +sha512sums="2c8985b316885975b6c07a6da03d55daea8bb212400a5db90ab7aecf1c5a79cd2682db46b39a3353e8bdd4a7e79fef86c26cec731d02561755852e48c09ad129 Test-Trap-v0.3.2.tar.gz" |