aports/main/perl-list-moreutils/APKBUILD
Natanael Copa 8bac74716d main: remove my contributor comment
git log is enough for me
2025-01-03 18:05:21 +01:00

35 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-list-moreutils
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=List-MoreUtils
pkgver=0.430
pkgrel=1
pkgdesc="Provide the stuff missing in List::Util"
url="https://metacpan.org/release/List-MoreUtils/"
arch="noarch"
license="Apache-2.0"
depends="perl perl-exporter-tiny perl-list-moreutils-xs"
makedepends="perl-dev perl-config-autoconf"
checkdepends="perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-$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="bc9ff033c12251a6f0899a96da0ec8fc314ddb8d6cdf18c37fe1fdcfc38a4c95ed6f8e006bb124e77d07241ae6754f429bc2041f7772b4acfce9378a21283469 List-MoreUtils-0.430.tar.gz"