diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-07 10:09:18 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:25 +0300 |
commit | 22361b5253743998fd6ca0e7df1dad6b4a452d60 (patch) | |
tree | f0a2a2853d507a996c0fa7ec816bda9e50a582a0 /testing | |
parent | 6bc6fc711b02fb996f321650a2ce39e0cf3f6584 (diff) | |
download | aports-22361b5253743998fd6ca0e7df1dad6b4a452d60.tar.bz2 aports-22361b5253743998fd6ca0e7df1dad6b4a452d60.tar.xz |
testing/perl-archive-extract: new aport
Generic archive extracting mechanism
http://search.cpan.org/dist/Archive-Extract/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-archive-extract/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
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 <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +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" |