diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 08:54:45 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 11:24:36 +0000 |
commit | 38c141320e0f0a13ad2ce9ce8217e7cb453c01d2 (patch) | |
tree | f0add6d6b6927757a9d6dedc1490562f7f324b48 /community/perl-test-yaml | |
parent | 3f799b43962a90b9f2c3394adafc2118e5f427b0 (diff) | |
download | aports-38c141320e0f0a13ad2ce9ce8217e7cb453c01d2.tar.bz2 aports-38c141320e0f0a13ad2ce9ce8217e7cb453c01d2.tar.xz |
community/perl-test-yaml: moved from testing
Diffstat (limited to 'community/perl-test-yaml')
-rw-r--r-- | community/perl-test-yaml/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-test-yaml/APKBUILD b/community/perl-test-yaml/APKBUILD new file mode 100644 index 0000000000..fa0f0c6f01 --- /dev/null +++ b/community/perl-test-yaml/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-test-yaml +_pkgreal=Test-YAML +pkgver=1.06 +pkgrel=0 +pkgdesc="Testing Module for YAML Implementations" +url="http://search.cpan.org/dist/Test-YAML/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-test-base" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_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 && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="92e6ea57576428095fe3c9b8e00e6f29 Test-YAML-1.06.tar.gz" +sha256sums="27376103163c12d7d13ae45bf22caf5a0c38478362425bf68613c3748f76b943 Test-YAML-1.06.tar.gz" +sha512sums="f6fe4bf46a8cc5ea92b5275cc704e79266b11769bd476888b202540a6d9a23a59a2550503afd88a72f9832355e2b48983f6a31f60db07abe5b0e15f4e74ae2e2 Test-YAML-1.06.tar.gz" |