diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/perl-test-requires/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-test-requires/APKBUILD b/system/perl-test-requires/APKBUILD new file mode 100644 index 000000000..cc9459d38 --- /dev/null +++ b/system/perl-test-requires/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-test-requires +_pkgreal=Test-Requires +pkgver=0.10 +pkgrel=0 +pkgdesc="Checks to see if a Perl module can be loaded" +url="http://search.cpan.org/dist/Test-Requires/" +arch="noarch" +license="GPL-2.0-only OR Artistic-1.0-Perl" +cpandepends="" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_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 +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="5bc6bf52ae5ab3c56f49b7b17faedf7d6afef2cadfca8aab4770f2c2f91cd4fcb98921e1af159d1dc42684b80f50d4b7fc12bd05ef9dccdcbeeeb6100a9e5ae6 Test-Requires-0.10.tar.gz" |