community/perl-list-moreutils-xs: new aport. In community since is a dependency of biber 2.8

This commit is contained in:
Francesco Colista 2017-11-14 00:41:08 +00:00
parent d89db58f64
commit ad8c20025e

View File

@ -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"