aports/main/perl-list-moreutils-xs/APKBUILD
2024-06-10 02:47:52 +00:00

36 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-list-moreutils-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=List-MoreUtils-XS
pkgver=0.430
pkgrel=5
pkgdesc="Provide the stuff missing in List::Util in XS"
url="https://metacpan.org/release/List-MoreUtils-XS/"
arch="all"
license="Apache-2.0"
depends="perl"
makedepends="perl-dev perl-config-autoconf perl-inc-latest"
checkdepends="perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-XS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="98260b81f03a425bf8c2e0b63bc3a8d360a0aa2e198b2b7faaeaa48684936183018afdd1e6a04bd7e99a7e728d809709c6206ea578dfe7d8d40c5a4e3e4bb405 List-MoreUtils-XS-0.430.tar.gz"