diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 13:13:57 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 13:13:57 +0000 |
commit | b0876f324800e7445ca528dc5e4a01515adff3a4 (patch) | |
tree | 73f83e4da9c08ef406f83fb6cb171209e57307e4 /community/perl-moox-types-mooselike/APKBUILD | |
parent | 92dea5b9d47050015bad123b77be5784d69d33bb (diff) | |
download | aports-b0876f324800e7445ca528dc5e4a01515adff3a4.tar.bz2 aports-b0876f324800e7445ca528dc5e4a01515adff3a4.tar.xz |
community/perl-moox-types-mooselike: moved from testing
Diffstat (limited to 'community/perl-moox-types-mooselike/APKBUILD')
-rw-r--r-- | community/perl-moox-types-mooselike/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-moox-types-mooselike/APKBUILD b/community/perl-moox-types-mooselike/APKBUILD new file mode 100644 index 0000000000..835b4daca4 --- /dev/null +++ b/community/perl-moox-types-mooselike/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-moox-types-mooselike +_pkgreal=MooX-Types-MooseLike +pkgver=0.29 +pkgrel=0 +pkgdesc="some Moosish types and a type builder" +url="http://search.cpan.org/dist/MooX-Types-MooseLike/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-module-runtime" +cpanmakedepends="perl-moo perl-test-fatal " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MATEU/$_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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="0905b92c1b44578e05e7f08fa7adb9ee MooX-Types-MooseLike-0.29.tar.gz" +sha256sums="1d3780aa9bea430afbe65aa8c76e718f1045ce788aadda4116f59d3b7a7ad2b4 MooX-Types-MooseLike-0.29.tar.gz" +sha512sums="69ddd0d663d1ea23dfc7e47ec35192f1951f195f70f788bac47cc93e98d9e888394c07fc39f1740b7c1fd04f8724f2b0dfa14183fe33bceb9f77c1f1d1b8752e MooX-Types-MooseLike-0.29.tar.gz" |