diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-14 00:41:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-16 18:07:30 +0000 |
commit | ad8c20025ea59225bab3a2ef55dd8cbb954cf7ce (patch) | |
tree | 1185b9680f1da234efa62d1e15241719a91faf5e | |
parent | d89db58f64bfde541627900b78660ab73cf524f2 (diff) | |
download | aports-ad8c20025ea59225bab3a2ef55dd8cbb954cf7ce.tar.bz2 aports-ad8c20025ea59225bab3a2ef55dd8cbb954cf7ce.tar.xz |
community/perl-list-moreutils-xs: new aport. In community since is a dependency of biber 2.8
-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" |