From 4801e861fa2fc916757983ad749fa1bc40de110a Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 19 Aug 2016 09:01:12 +0000 Subject: community/perl-try-tiny: moved from testing --- community/perl-try-tiny/APKBUILD | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 community/perl-try-tiny/APKBUILD (limited to 'community/perl-try-tiny') 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 +# Maintainer: Francesco Colista +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" -- cgit v1.2.3