From 4086245c7d4bbc5db6090834b5fb3a781c8f7e29 Mon Sep 17 00:00:00 2001 From: Sheila Aman Date: Tue, 11 May 2021 02:19:46 +0000 Subject: user/perl-scalar-list-utils: new package --- user/perl-scalar-list-utils/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/perl-scalar-list-utils/APKBUILD (limited to 'user') diff --git a/user/perl-scalar-list-utils/APKBUILD b/user/perl-scalar-list-utils/APKBUILD new file mode 100644 index 000000000..0bbcc82d0 --- /dev/null +++ b/user/perl-scalar-list-utils/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Sheila Aman +# Maintainer: Sheila Aman +pkgname=perl-scalar-list-utils +_pkgreal=Scalar-List-Utils +_author=PEVANS +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} +pkgver=1.56 +pkgrel=0 +pkgdesc="Perl collection of utility functions for scalars, lists, and subs" +url="https://metacpan.org/release/Scalar-List-Utils" +arch="all" +license="GPL-1.0+ OR Artistic-1.0-Perl" +depends="perl" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="90291e154497599e7e41b6746dc29351c619201b5723eedfa76dee81d0db4ae28ad598355edc61c529de5c05d5eafc17ae6c3205f0c624fc2a028ecbac9f2c3f Scalar-List-Utils-1.56.tar.gz" -- cgit v1.2.3-70-g09d2