diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 09:01:12 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 11:24:36 +0000 |
commit | 4801e861fa2fc916757983ad749fa1bc40de110a (patch) | |
tree | bde0fdbea97b1acb5e69c536fd09d601a47b30a3 /community/perl-try-tiny | |
parent | 0a92b4f7a4fa1da87d6e796d1f3a25ab203e2b13 (diff) | |
download | aports-4801e861fa2fc916757983ad749fa1bc40de110a.tar.bz2 aports-4801e861fa2fc916757983ad749fa1bc40de110a.tar.xz |
community/perl-try-tiny: moved from testing
Diffstat (limited to 'community/perl-try-tiny')
-rw-r--r-- | community/perl-try-tiny/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-try-tiny/APKBUILD b/community/perl-try-tiny/APKBUILD new file mode 100644 index 0000000000..b51888c8b9 --- /dev/null +++ b/community/perl-try-tiny/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-try-tiny +_pkgreal=Try-Tiny +pkgver=0.24 +pkgrel=0 +pkgdesc="minimal try/catch with proper preservation of $@" +url="http://search.cpan.org/dist/Try-Tiny/" +arch="noarch" +license="mit" +cpandepends="perl-capture-tiny perl-pod-coverage" +cpanmakedepends="grep perl-sub-name" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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 +} + +md5sums="1a12a51cfeb7e2c301e4ae093c7ecdfb Try-Tiny-0.24.tar.gz" +sha256sums="9b7a1af24c0256973d175369ebbdc25ec01e2452a97f2d3ab61481c826f38d81 Try-Tiny-0.24.tar.gz" +sha512sums="403ce12b7cda7356b1a86d7661ed406ce4e526f416033fa5eb04b83bbeb7f198b4660342383232affe2ef9a8e0dbd237a6e6c0f290c277c8abc319c949d3c959 Try-Tiny-0.24.tar.gz" |