From 95eb37b284e4c2164969f6c978e02354eec9d605 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Thu, 9 Mar 2017 07:10:32 +0000 Subject: main/perl-devel-checklib: new aport --- main/perl-devel-checklib/APKBUILD | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 main/perl-devel-checklib/APKBUILD (limited to 'main/perl-devel-checklib') diff --git a/main/perl-devel-checklib/APKBUILD b/main/perl-devel-checklib/APKBUILD new file mode 100644 index 0000000000..e0df2e57cb --- /dev/null +++ b/main/perl-devel-checklib/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: +# Maintainer: Leonardo Arena +pkgname=perl-devel-checklib +_pkgreal=Devel-CheckLib +pkgver=1.07 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Devel-CheckLib/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-io-captureoutput" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/$_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 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="05ced7b976b2c9854f0705db3b461614962568045e04b33a92c11d05ec8183cf56935dc5ef2f80e4746d52cb08c6c993627166d0f701abce5c91ceceed39d103 Devel-CheckLib-1.07.tar.gz" -- cgit v1.2.3