diff options
-rw-r--r-- | community/perl-list-moreutils-xs/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/perl-list-moreutils-xs/APKBUILD b/community/perl-list-moreutils-xs/APKBUILD new file mode 100644 index 0000000000..34231165fe --- /dev/null +++ b/community/perl-list-moreutils-xs/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-list-moreutils-xs +_pkgreal=List-MoreUtils-XS +pkgver=0.426 +pkgrel=0 +pkgdesc="Provide the stuff missing in List::Util in XS" +url="http://search.cpan.org/dist/List-MoreUtils-XS/" +arch="all" +license="apache_2_0" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + 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 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="c98bafe58eb636ffb0a2410b74904e9dff6b719d3574ddf5f56bdcfe19fbba76135b4f631cb45e4c9cea8330125cd3d2be2d8571026cd521a25eb512b88e99cf List-MoreUtils-XS-0.426.tar.gz" |