From 22361b5253743998fd6ca0e7df1dad6b4a452d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 7 Jul 2017 10:09:18 +0300 Subject: testing/perl-archive-extract: new aport Generic archive extracting mechanism http://search.cpan.org/dist/Archive-Extract/ --- testing/perl-archive-extract/APKBUILD | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 testing/perl-archive-extract/APKBUILD (limited to 'testing/perl-archive-extract/APKBUILD') diff --git a/testing/perl-archive-extract/APKBUILD b/testing/perl-archive-extract/APKBUILD new file mode 100644 index 0000000000..1defd6af54 --- /dev/null +++ b/testing/perl-archive-extract/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +pkgname=perl-archive-extract +_pkgreal=Archive-Extract +pkgver=0.80 +pkgrel=0 +pkgdesc="Generic archive extracting mechanism" +url="http://search.cpan.org/dist/Archive-Extract/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="2f216ea29639c4d8b7b19e4b23542b6f69e970cfb0188dca55ff7ce7d3a3021e43129dbdf81b82f7d97d0080d00f858c6af3595520b6bacac30073a8b25ea4f0 Archive-Extract-0.80.tar.gz" -- cgit v1.2.3